Shamima Sultana

About author

Shamima Sultana, BSc, Computer Science and Engineering, East West University, Bangladesh, has been working with the ExcelDemy project for 2 years. She has written over 75+ articles and reviewed 1000+ articles for ExcelDemy. She has also led several teams with Excel VBA and Content Development works. Currently, she is working as the Project Manager and oversees the day-to-day work, leads the services team, allocates resources to the right area, etc. Her work and learning interests vary from Microsoft Office Suites, and Excel to Data Analysis, Data Science, VBA, Python, and developing Excel Applications.

Designation

Project Manager at ExcelDemy in SOFTEKO.

Lives in

Dhaka, Bangladesh.

Education

B.sc in Computer Science and Engineering (CSE), East West University.

Expertise

Data Analysis, Content Writing, C, C++, Python, JavaScript (Basic), HTML, SQL, MySQL, PostgreSQL, Microsoft Office.

Experience

  • Project Management
  • Technical Content Writing
  • Team Management
  • Software Engineer
    • Data Architecture [Analysis and Diagram]
    • Data Governance [Using Excel and Postgre SQL]
    • 3D Object Visualization [Using Python]
  • Undergraduate Projects
    • Industrial Visit Planning Website
    • Database Management System
    • Factoid Question Answering System (over Bangla Comprehension)

Summary

  • Currently working as Project Manager of ExcelDemy
  • Started technical content writing of Excel & VBA in October 2021 later prompted as Team Leader for Content Management.
  • I worked at Adipster Tech Limited as a Software Engineer from November 2020 – May 2021. I’ve Done several real-life projects and documented several projects with analytical reports.

Research & Publication

Latest Posts From Shamima Sultana

0
How to Remove Error in Excel: 8 Methods

Method 1 - Using Go To Special to Remove Error Remove errors; use the Go To Special. Open the Home tab >> go to Editing group >> from Find ...

0
How to Remove a Value in Excel (9 Methods)

The below dataset has 5 columns: Product Name, Order ID, Price, Order Date, and Status. Method 1 - Using a Keyboard Shortcut Steps: Select any ...

0
Excel Find Last Column With Data: 4 Quick Ways

Method 1 - Use the TAKE Function to Find the Last Data of the Last Column Select any cell to place your resultant value. We selected the cell F4. ...

0
How to Copy Sheet with VBA in Excel: 13 Quick Methods

Method 1 - Using Excel VBA to Copy a Worksheet in the Same Workbook (Before Any Sheet) Steps: Press ALT + F11 to open the Microsoft Visual Basic for ...

0
How to Use Excel VBA to Copy Range to Another Excel Sheet

Here's an overview of copying a range without formatting. How to Use Excel VBA to Copy a Range to Another Sheet: 8 Suitable Ways We'll use a sample ...

0
Excel Highlight Cell If Value Greater Than Another Cell (6 Ways)

Here's an overview of highlighting cells if they have higher values than other cells in a range. Highlight a Cell If Its Value Is Greater Than ...

1
Using an Excel Macro to Compare Two Columns – 4 Methods

The sample dataset showcases Bank data: Full Name, Email_ID, and Address. To check whether the same person has accounts in both banks: Method 1 ...

0
How to Split Excel Sheet into Multiple Worksheets (3 Methods)

Here's an overview of splitting an Excel sheet into multiple worksheets. We'll use a sample dataset representing the sales information of different ...

0
How to Find Last Row Using Excel VBA (5 Easy ways)

There are 4 columns in the dataset representing sales information. These columns are Sales Person, Region, Product, and Price. We'll find the last row in the ...

0
How to Use the SUMIF with OR Logic in Excel (10 Methods)

Below is a dataset of sales information. The dataset has three columns: Region, Product Name, and Price. Each column represents the sales amount of a ...

0
How to Remove Empty Rows in Excel (11 Easy Ways)

Download Practice Workbook Remove Empty Rows.xlsx Method 1 - Using Context Menu to Remove Empty Rows Select the empty row by left-clicking on ...

0
How to Use the Excel Formula to Get the First 3 Characters from a Cell: 6 Methods

Below is a dataset of the order information for a particular product. There are 3 columns: Order ID, Brand, and Price. Note: Use the Excel 365 edition ...

0
How to Split a Cell into Two Rows in Excel (3 Easy Ways)

Here's an overview of splitting a cell into two rows in Excel. We'll use dataset with two columns: Author and Book Name. There are some cells where ...

0
How to Compare Addresses in Excel (11 Possible Methods)

To demonstrate our methods, we'll use the following dataset of two sets of bank customers, and find out which have accounts at both banks. ...

0
How to Fill Color in Cell Using Formula in Excel (5 Easy Ways)

Here's an overview of the formulas we used to fill in cells with colors. We're using a sample Pay Sheet of several employees. There are 4 columns ...

Browsing All Comments By: Shamima Sultana
  1. Hi Arda
    Hope you are doing well.

    I checked the code you mentioned above and it works. To make it more clear I’m attaching some images with the code.

    Here, I tried the exact code in the same dataset.
    MsgBox Range("E5").End(xlToRight).Offset(0, 1).Address

    You can see the result $G$5.

    Again I changed the dataset slightly.

    Here, the result is also based on the location.

    NB. If it doesn’t help you then please send your dataset to [email protected] or [email protected]

    Thanks
    Shamima Sultana
    ExcelDemy

  2. Hello Morgan Trevino,

    Checked method-2 to confirm the issue. Method-2 is working perfectly:

    To ensure that only overdue dates are highlighted using method 2, please check the conditional formatting formula used. The formula should compare the dates with today’s date.

    You also can use the formula: = A1 (replace A1 with the appropriate cell reference for your dates). This formula will highlight only the dates that are earlier than today’s date.

    If you need further guidance, please share the exact formula you used so I can help you correct it.

    Regards
    ExcelDemy

  3. Hello Larry,

    Based on your previous comment.

    To add the date to column K of the matched row of TCN of column B, you will need to use the Date function. It will provide the current date.

    Here, I updated the VBA code to add the date. Make sure to place this code in the appropriate worksheet module where you are scanning the barcodes.

    Private Sub Worksheet_Change(ByVal target As Range)
        If Not Intersect(target, Columns("M")) Is Nothing Then
            Z = Intersect(target, Columns("M")).Value
            If IsNumeric(Z) Then
                x = Application.Evaluate("MATCH(" & Z & ",B:B,0)")
            Else
                x = Application.Evaluate("MATCH(" & Chr(34) & Z & Chr(34) & ",B:B,0)")
            End If
            If Not IsError(x) Then
                Application.Goto Cells(x, 15)
                Cells(x, 11).Value = Date & " " & Time ' Adds the current date to column K
            End If
        End If
    End Sub
    

    Regards
    ExcelDemy

  4. Hello Guy,

    You cannot open the same Excel sheet in safe mode without closing it first. Safe mode is designed to start Excel without add-ins or other customizations, which requires restarting the application. If you are experiencing issues with a specific sheet, try saving your work, close Excel, then reopen it in safe mode using the Ctrl key method:

    1. Press and hold the Ctrl key.
    2. While holding Ctrl, click on the Excel icon to open it.
    3. A prompt will appear asking if you want to start Excel in safe mode. Click Yes.

    This method allows you to open a new instance of Excel in safe mode while keeping your current sheet open.

    Regards
    ExcelDemy

  5. Hello Larry,

    To add the date to column K of the matched row of TCN of column B, you will need to use the Date function. It will provide the current date.

    Here, I updated the VBA code to add the date. Make sure to place this code in the appropriate worksheet module where you are scanning the barcodes.

    Private Sub Worksheet_Change(ByVal target As Range)
        If Not Intersect(target, Columns("M")) Is Nothing Then
            Z = Intersect(target, Columns("M")).Value
            If IsNumeric(Z) Then
                x = Application.Evaluate("MATCH(" & Z & ",B:B,0)")
            Else
                x = Application.Evaluate("MATCH(" & Chr(34) & Z & Chr(34) & ",B:B,0)")
            End If
            If Not IsError(x) Then
                Application.Goto Cells(x, 15)
                Cells(x, 11).Value = Date & " " & Time ' Adds the current date to column K
            End If
        End If
    End Sub
    

    Regards
    ExcelDemy

  6. Hello Srivatsan Guru,

    You are most welcome. It’s great to hear that it was helpful to you. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  7. Hello AMG,

    You are most welcome. It’s great to hear that Method-7 was helpful to you and it worked perfectly. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  8. Hello Jerry,

    Method-3 is working perfectly. To get the page number in a proper way you need to insert the page number first. Follow the given steps to insert the page number in a selected cell.
    First select a cell >> go to Developer tab >> from Macros >> select Page_Number_Selected_Cell().
    It will insert the page number.
    Remember to select the cell sequentially to add page numbers.

    Output:

    Regards
    ExcelDemy

  9. Hello Michel Claes,

    You are most welcome. Thank you for your feedback! I’m glad you found the article helpful.
    Static oldval(6 To 10) As Variant: Declares a static array oldval to store previous values of cells F6 to F10, so the values persist between subroutine calls.
    The variable “oldval” is initialized at the first run of the subroutine to store the initial cell value before any changes occur. It’s updated only when a change is not detected to retain the previous value for comparison. This way, it can accurately identify when a change happens in the cell value.
    If you have any further questions or need more clarification, feel free to ask!

    Regards
    ExcelDemy

  10. Hello Rolands,

    You are most welcome. Thank you for your feedback! I’m glad the solution worked for you. Replacing Target.Address with Target.Column = 5 is a great adjustment for your setup with multiple drop-down cells in column E. It’s wonderful to hear that it continues to work even for newly created and copy-pasted rows.

    We used Target.Address initially to target specific cells, making it easy to apply the method to designated areas. This approach provides precision and control, especially useful for varying drop-down list configurations.

    Regards
    ExcelDemy

  11. Hello Melody,

    Thank you for your interest! Unfortunately, we are unable to provide a PDF version of the content from the Learn Excel page on ExcelDemy. But you can always access and study the material directly on our website at any time. If you have any specific topics or questions, feel free to let us know, and we’ll be happy to help!

    Regards
    ExcelDemy

  12. Hello Hari Lalam,

    You are most welcome. It is great to hear that the Google Sheets method accomplished your task. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  13. Hello Johnson Helen,

    You are most welcome. We are glad to hear that it was really helpful to you. In our Practice Test & Quiz category you will find out more data entry practice here: Data Entry Practice Test & Quiz

    Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  14. Hello Raif,

    You are most welcome. We are glad to hear that our example worked for you. You can explore more article related to VBA. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  15. Hello Samwel Gurt,

    You are most welcome. We are glad to hear that our article is excellent and satisfying to you. You can explore more article related to these topic. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  16. Hello Samwel Gurt,

    Thank you so much. We are glad to hear that you loved our article. You can explore more article related to these topic. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  17. Hello Me,

    You are most welcome. Your appreciation means a lot to us. You can explore more article related to these topic. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  18. Hello Tony Jin,

    You are most welcome. Your appreciation means a lot to us. You can explore more article related to these topic. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  19. Hello Matthew Richard Raison,

    The problem with the VBA code not working for a different roster template could be due to differences in the sheet structure. While using different sheet structure update the VBA code according to you new sheet:

    1. Ensure the cells for month and year are correctly referenced (W2 and AC2).
    2. Adjust the CopyToSheet subroutine to match the layout and structure of your specific roster sheet.
    3. Verify that the new sheet created is an exact replica by manually inspecting the VBA code to ensure all ranges and cell references align with your roster’s layout.
    Make these adjustments, and the code should work as intended.

    Regards
    ExcelDemy

  20. Hello Claudia Sgiarovello,

    On our end the VBA code is working perfectly. Rechecked the code to confirm it.

    Make sure you replace the curly quotation marks with straight quotation marks to avoid syntax errors in VBA. If the problem persists, double-check the name of the range “CheckListOutput” to ensure it matches exactly with what is in your Excel workbook.

    1. Ensure all quotes are straight quotes ().
    2. Check that “CheckListOutput” matches the actual named range in your Excel workbook.
    3. Verify that “checkList” matches the name of your ActiveX listbox control.

    If these steps don’t resolve the issue, consider providing more details about any specific error messages or behaviors you’re encountering.

    Regards
    ExcelDemy

  21. Hello Muskan Gadodia,

    To Load/Export the table into an Excel worksheet follow these steps:
    Select the sheet name (Departmental Sheet) and Right-Click on the sheet. Then, select Load To.

    Selecting Sheet

    Import Data dialog box will pop up
    From there select Table.
    Then select the location where you want to put the data. Here, selected A1 cell.

    Finally, data is exported to a table.

    You will get the steps in our updated article also.

    Regards
    ExcelDemy

  22. Hello Anonymous,

    Thank you for your feedback! I’ve updated the document to include detailed explanations for each example, showing exactly how each formula works step-by-step. This should make it easier for you to understand how to adapt the formulas for your own spreadsheets.

    I’m glad the initial examples were helpful, and I hope the added explanations will provide the deeper understanding you’re looking for. If you have any more questions or need further clarification, please feel free to ask. Happy spreadsheeting!

    Regards
    ExcelDemy

  23. Hello Idrissa A.Kamara,

    You’re most welcome! I’m glad to hear that the materials and tutorial have been helpful in enhancing your Excel skills and intelligence. Your dedication to learning and improvement is truly inspiring. God bless you as well, and if you ever need further assistance or have more questions, feel free to reach out. Keep up the great work!
    Keep leaning Excel with ExcelDemy.

    Regards
    ExcelDemy

  24. Hello Bob,

    Thank you for bringing this to our attention. Our template is designed to handle various loan amounts and interest rates. I’ve checked the template again by changing loan amount, interest , tenure etc and it’s working perfectly. I will request you to check, How to Use This Template part of the article.

    Templates’ intial image:


    Different Loan Amount and Interest Rate:


    Another changes:

    It sounds like there might be a formatting or input error causing the #VALUE! error. Please ensure that:

    Loan Amount and Interest Rate Formats: The values are entered as plain numbers without any special characters or spaces. For example, enter 200000 for $100,000 and 8 for an interest rate of 8%.
    Correct Cells: The values are being entered in the correct cells specified for loan amount and interest rate.
    If you’ve checked these and are still encountering issues, please feel free to share a screenshot or more details about the error. We’ll be happy to assist further.

    Thank you for your patience and understanding.

    Regards
    ExcelDemy

  25. Hello Faye,

    The formula provided calculates the straight-line (great-circle) distance between two points, not accounting for roads, highways, or specific travel routes. This is why you notice a discrepancy when comparing it to Google Maps or Bing, which calculate driving or walking distances along actual travel paths.
    The straight-line distance is the shortest path over the earth’s surface, which does not reflect the true travel distance that might involve various roads and pathways.

    Thanks for commenting and asking questions! It’s great that you’re diving into the details and eager to learn. No worries, it’s not a dumb question at all! Learning these differences is part of the process. Keep up the good work!

    Regards
    ExcelDemy

  26. Hello Andrew,

    There is a way to set up to be used repeatedly and routinely but for that you will need to install Adobe Acrobat SDK this is necessary for controlling Acrobat via VBA. Then you will need to use VBA code and Task Schedular.
    Copy the VBA code to find the PDF file from a directory.

    Sub ImportPDFsFromDirectory()
        Dim AcroApp As Object
        Dim AVDoc As Object
        Dim PDDoc As Object
        Dim jso As Object
        Dim field As Object
        Dim i As Integer
        Dim ws As Worksheet
        Dim filePath As String
        Dim folderPath As String
        Dim fileName As String
        
        ' Set the folder path
        folderPath = "C:\path\to\your\pdf\directory\"
        
        ' Set the worksheet
        Set ws = ThisWorkbook.Sheets("Sheet1")
        i = 1
        
        ' Create Adobe Acrobat objects
        Set AcroApp = CreateObject("AcroExch.App")
        
        ' Loop through all PDF files in the directory
        fileName = Dir(folderPath & "*.pdf")
        Do While fileName <> ""
            filePath = folderPath & fileName
            Set AVDoc = CreateObject("AcroExch.AVDoc")
            
            If AVDoc.Open(filePath, "") Then
                Set PDDoc = AVDoc.GetPDDoc
                Set jso = PDDoc.GetJSObject
                
                ' Extract and write PDF data to Excel
                For Each field In jso.GetFieldNames
                    ws.Cells(i, 1).Value = field
                    ws.Cells(i, 2).Value = jso.GetField(field).Value
                    i = i + 1
                Next field
                
                AVDoc.Close True
            End If
            
            fileName = Dir
        Loop
        
        ' Close Acrobat application
        AcroApp.Exit
    End Sub
    

    Now, set up the Task Scheduler:
    1. Open Task Scheduler
    Search for “Task Scheduler” in the Windows Start menu and open it.

    2. Create a Basic Task

    o Click on “Create Basic Task…” in the Actions pane.
    o Name your task (e.g., “Automate PDF to Excel”) and provide a description.
    o Click “Next”.

    3. Set Trigger
    o Choose when you want the task to start (e.g., Daily, Weekly).
    o Click “Next” and set the start date and time.
    o Click “Next”.

    4. Set Action
    o Choose “Start a program” and click “Next”.
    o In the “Program/script” field, enter the path to the Excel executable (e.g., C:\Program Files\Microsoft Office\root\Office365\EXCEL.EXE).
    o In the “Add arguments (optional)” field, enter the path to your Excel workbook (e.g., “C:\path\to\your\workbook.xlsm”).
    o Click “Next”.

    5. Finish
    o Review your settings and click “Finish”.

    6. Configure Task
    o Locate your new task in the Task Scheduler Library.
    o Right-click it and select “Properties”.
    o Go to the “Actions” tab and click “Edit”.
    o In the “Add arguments (optional)” field, add the following to run the specific macro:
    /e /mImportPDFData
    o Click “OK” and then “OK” again to save your changes.

    This setup will automatically open the Excel file and run the specified macro at the scheduled times.

    Regards
    ExcelDemy

  27. Hello Sid,

    You can use the Application.OnKey method to assign a macro to a specific key. To handle the “Insert” key, you need to use the correct key code.To use the Insert key as an event along with Application.OnKey do the followings:

    Copy paste the following code in the Moduel:

    Sub InsertRowAndAutofill()
        Dim Target As Range
        Set Target = Application.ActiveCell
        Target.Offset(2).EntireRow.Insert
        Target.EntireRow.Copy Target.Offset(2).EntireRow
        On Error Resume Next
        Target.Offset(2).EntireRow.SpecialCells(xlConstants).ClearContents
    End Sub

    Then copy paste the following code in ThisWorkbook:
    The Workbook_Open event, will set the Application.OnKey to assign the “Insert” key to this macro and the Workbook_BeforeClose event, clear the key assignment when closing the workbook.

    Private Sub Workbook_Open()
        Application.OnKey "{INSERT}", "InsertRowAndAutofill"
    End Sub
    
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
        Application.OnKey "{INSERT}"
    End Sub
    

    Regards
    ExcelDemy

  28. Hello Paolo,

    You are most welcome. We are glad to hear that you found our solution easy and efficient. Keep finding Excel solutions with ExcelDemy.

    Regards
    ExcelDemy

  29. Hello Nate,

    You are most welcome. We are glad that our solution worked perfectly for you. Keep finding Excel solutions with ExcelDemy.

    Regards
    ExcelDemy

  30. Hello Bhabani,

    Please fill out this form properly to get the FREE Advanced Excel Exercises with Solutions

    I received the exercise sheet via email after filling out the form.

    Regards
    ExcelDemy

  31. Hello Karin Williams,

    You are most welcome. Thanks for your appreciation, it means a lot to us. We are glad to hear that you found our article most comprehensive. Keep learning Excel with ExcelDemy.

    Regards
    ExcelDemy

  32. Hello Keith Miller,

    I understand your frustration with transitioning from MSQuery to Power Query, especially after being familiar with MSQuery for so long. The learning curve can be a bit daunting, but the good news is that Power Query is incredibly powerful and can handle the task you described quite efficiently.

    To join two tables into one data set without resorting to Access or using numerous VLOOKUP formulas, Power Query is indeed your best bet.
    Please follow this article to Combine Two Tables Using Power Query in Excel

    To create relationship between two tables you can follow the given steps too:
    Let’s say, we have two tables describing different products ordered by some customers from separate addresses and their respective prices.

    I have created the first column named Customer Information with headings: Customer ID, Name, and Address.

    Create Relationship Between Tables in Excel

    Another table named Order Information has headings like: Name, Product, and Price.

    Create Relationship Between Tables in Excel

    It is noticeable that there must be a common column to create a relationship between the tables.

    Here, I will show the method of creating relationships using Pivot Table. In order to demonstrate this method, proceed with the following steps.

    Steps:

    • First of all, select the data range of the first table (i. e. Customer Information)> go to the Insert tab> click Table.

    Create Relationship Between Tables in Excel

    • Then, click OK on the Create Table dialogue box.

    Create Relationship Between Tables in Excel

    • Now, your table will be created.

    Create Relationship Between Tables in Excel

    • Here, follow the same procedure for the other table (i.e. Order Information).

    Create Relationship Between Tables in Excel

    • Now, click on the Table > go to the Table Design tab> assign a name for the table.

    I have named the first table Customer and the second table Order.

    Create Relationship Between Tables in Excel

    • After that, click on the Customer table> go to the Insert tab> and click Pivot Table.

    • Here, PivotTable from table or range dialogue box will show up. Mark  Add this data to the Data Model box and click OK.

    • Now, the Pivot Table Fields will show up.

    • Now, select the data type from both the tables (i.e. Address from the first table and Price from the second table) and click CREATE.

    • After that, Create Relationship dialogue box will show up. Here, assign the table names and the common column (i.e. Name) and click OK.

    • Finally, Excel will create a relationship between the two tables.

    Create Relationship Between Tables in Excel

    So, these are the steps you can follow to create a relationship between tables using the Pivot Table option.

    Read More: How to Create Data Model Relationships in Excel

    Download the Excel File: Creating Relationship Between Tables.xlsx

    Regards
    ExcelDemy

  33. Hello SH,

    The VBA code is working perfectly. Similarities of two columns are highlighted in Red color.
    Here, I am uploading a video of VBA code:

    Video of VBA code Highlighting Similarities

    Kindly use the following code again:

    Sub highlight_similar_text()
        
        On Error Resume Next
        If ActiveWindow.RangeSelection.Count > 1 Then
          Text = ActiveWindow.RangeSelection.AddressLocal
        Else
          Text = ActiveSheet.UsedRange.AddressLocal
        End If
    One:
        Set Range1 = Application.InputBox("First Range:", "Exceldemy", Text, , , , , 8)
        If Range1 Is Nothing Then Exit Sub
        If Range1.Columns.Count > 1 Or Range1.Areas.Count > 1 Then
            MsgBox "You select multiple ranges or columns ", vbInformation, "Exceldemy"
            GoTo One
        End If
    Two:
        Set Range2 = Application.InputBox("Second Range:", "Exceldemy", "", , , , , 8)
        If Range2 Is Nothing Then Exit Sub
        If Range2.Columns.Count > 1 Or Range2.Areas.Count > 1 Then
            MsgBox "You select multiple ranges or columns ", vbInformation, "Exceldemy"
            GoTo Two
        End If
        If Range1.CountLarge <> Range2.CountLarge Then
           MsgBox "Ranges should have the same numbers of cells ", vbInformation, "Exceldemy"
           GoTo Two
        End If
        Differ = (MsgBox("Select Yes to highlight similarities, Select No to highlight differences ", vbYesNo + vbQuestion, "Exceldemy") = vbNo)
        Application.ScreenUpdating = False
        Range2.Font.ColorIndex = xlAutomatic
        For I = 1 To Range1.Count
            Set FirstCell = Range1.Cells(I)
            Set SecondCell = Range2.Cells(I)
            If FirstCell.Value2 = SecondCell.Value2 Then
                If Not Differ Then SecondCell.Font.Color = vbRed
            Else
                xLen = Len(FirstCell.Value2)
                For J = 1 To xLen
                    If Not FirstCell.Characters(J, 1).Text = SecondCell.Characters(J, 1).Text Then Exit For
                Next J
                If Not Differ Then
                    If J <= Len(SecondCell.Value2) And J > 1 Then
                        SecondCell.Characters(1, J - 1).Font.Color = vbRed
                    End If
                Else
                    If J <= Len(SecondCell.Value2) Then
                        SecondCell.Characters(J, Len(SecondCell.Value2) - J + 1).Font.Color = vbRed
                    End If
                End If
            End If
        Next
        Application.ScreenUpdating = True
    End Sub

    Please click on Yes to highlight the similarities.

    Regards
    ExcelDemy

  34. Hello Daz C,

    Making AllTaskList sheet a table is not an issue. May be Named Range is not working properly that’s why VLOOKUP is not getting the lookup values.

    Please, check the tasklist from Named Manager.
    Go to Formulas >> from Defined Names >> select Name Manager.
    Check the Tasklist contains =’AllTaskList (2)’!$B:$G

    N.B: You can change your list based on your sheet.

    Here, I made the AllTaskList a table to check either it’s a problem or not.

    Then, checked the Task Detail sheet to see VLLOKKUP is working or not.

    Here VLOOKUP is working perfectly.

    I am uploading the updated Excel file, please download it from here:
    Creating a Task Tracker Using Table.xlsx

    Reagards
    ExcelDemy

  35. Hello Leo Mulhern,

    The Excel file is working fine in my end. I updated the stocks name and it is working.

    Track Stock Prices:

    Updated Stock Prices:

    Again, I uploaded the Excel file for you:
    Track Stocks in Excel (Updated).xlsx

    If new file keeps shutting down, try these steps to fix the issue:

    Update Excel: Make sure Excel is up to date.
    Disable Add-Ins: Open Excel in Safe Mode (hold Ctrl while opening Excel), then disable add-ins from File -> Options -> Add-Ins.
    Repair Office: Go to Control Panel -> Programs -> Programs and Features, find Microsoft Office, right-click, select Change, and choose Quick Repair.

    Regards
    ExcelDemy

  36. Hello Flipmode,

    Thank you for your feedback and for highlighting the importance of accurate formulas. However, the provided formula in the article is giving correct results for the USD to EUR conversion as shown in the example table. The VLOOKUP formula used is correctly referencing the exchange rate and multiplying it with the USD value. Here, we are converting currencies from USD to any other currency.
    USD to EURO:

    USD to ARS:

    N.B: In our article we used exchange rate data of 9/27/2022

    Thank you for your feedback. If your specific examples work for reversing the lookup, then it’s a wonderful solution. We appreciate your suggestions and hope other users find your insights useful. Thanks for your contribution!

    Regards
    ExcelDemy

  37. Hello Julie Binks,

    Based on your table you can match data to return sales. Use the following formula to get data based on partial name.

    =VLOOKUP(“*”&E5&”*”,B4:C11,2,FALSE)

    Here is the sample data with output:

    Regards
    ExcelDemy

  38. Hello Ahmed,

    You are most welcome. Thanks for your appreciation it means a lot to us. Keep learning Excel with us.

    Regards
    ExcelDemy

  39. Hello JM Kim,

    Here, created a single bar chart horizontal with two values Active an Inactive or 1 and 0 which is displayed with different color and x axis it time value.

    Download the Excel File: Single Horizontal Bar Chart Showing Active Inactive Status.xlsx

    Regards
    ExcelDemy

  40. Hello Kumar Chavan,

    You need to create two sheets to present your expenses.

    Firstly, create Income and Expenditure Account sheet to record all incomes and expenditures for the year, including the deferred income adjustment for repairs.

    Then, create Balance Sheet to present the assets, liabilities, and equity as of the year-end date.

    Here is your Example Format: Template for Income and Expenditure Account and Balance Sheet.xlsx

    Regards
    ExcelDemy

  41. Hello JZ,

    NYSE ticker SNOW for Snowflake is included in Excel database.
    To get the data follow the steps below.
    Insert SNOW in any cell then click on Stocks from Data tab.

    You will get all the data by selecting the fields.

    Regards
    ExcelDemy

  42. Hello Imtiaz,

    To do so you need to use two VBA code in your Excel workbook. One in the Module to update date and another in the first sheet where you will update the date. Make sure to replace “Sheet1” with the actual name of the sheet where you will enter the date, and “A1” with the cell reference where the date is located.
    Copy and paste the following VBA code into the new module:

    Sub UpdateDateInAllSheets()
        Dim ws As Worksheet
        Dim dateValue As Variant
        
        ' Change "Sheet1" to the name of the sheet where you will enter the date
        dateValue = ThisWorkbook.Sheets("Sheet1").Range("A1").Value
        
        For Each ws In ThisWorkbook.Worksheets
            If ws.Name <> "Sheet1" Then
                ws.Range("A1").Value = dateValue
            End If
        Next ws
    End Sub
    

    To automatically update the date whenever the date is changed, you need to use the Worksheet_Change event.
    In the VBA Editor, double-click the sheet where you will enter the date (e.g., Sheet1) in the Project Explorer window.
    Then, paste the following code:

    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address = "$A$1" Then
            Call UpdateDateInAllSheets
        End If
    End Sub
    

    Again, replace “$A$1” with the actual cell reference where the date is located.

    Now, whenever you change the date in the specified cell on your primary sheet (e.g., Sheet1), the date will automatically be updated in the corresponding cell on all other sheets.
    VBA code will assume that the date is located in the same cell on each sheet.

    Regards
    ExcelDemy

  43. Hello Ramesh Satyanarayanamurthy,

    To search multiple text in single cell by using the IF,ISNUMBER and SEARCH function, use the following formula:
    =IF(ISNUMBER(SEARCH(“Service”, B5)), “Server Status”, IF(ISNUMBER(SEARCH(“Application”, B5)), “Application Status”, IF(ISNUMBER(SEARCH(“Connect”, B5)), “Connectivity”, IF(ISNUMBER(SEARCH(“CPU Utilization”, B5)), “CPU Utilization”, “”))))

    Output:

    Regards
    ExcelDemy

  44. Hello Jacob,

    Thanks a lot for sharing this solution. Defining the validation string using a ListObject is indeed a smart approach. By turning the data into a table, we can avoid manually editing column addresses and ensure the code remains functional even if the table moves.
    I appreciate the suggestion to make both sets of data into tables for easier referencing. This will definitely help in maintaining the code’s robustness and flexibility.

    Regards
    ExcelDemy

  45. Hello Patrick Raimond,

    To use the iterative formula you need to do the following changes in Excel options

    Enable Iterative Calculations:

    First, go to File > Options > Formulas.
    Then, select Enable iterative calculation.

    Today’s Output:

    Regards
    ExcelDemy

  46. Hello Tejas,

    If the search cell has multiple criteria, you can use the following formula:
    =TEXTJOIN(“, “, TRUE, IF(ISNUMBER(SEARCH($E$4:$E$5, B4)), $E$4:$E$5, “”))

    It checks if any of the values in the criteria range are found within the text in cell B4. The SEARCH function identifies the presence of these values, and ISNUMBER confirms their existence. The IF function returns the matching values, while TEXTJOIN concatenates them into a single string, separated by commas, ignoring empty results. This allows multiple matches to be displayed in one cell.

    Regards
    ExcelDemy

  47. Hello D.A.

    Here updated the VLOOKUPCMT function and named VLOOKUPCMT_New where handled threaded comments in newer versions of Excel.
    Added deletion of existing threaded comments and handling of threaded comments
    To ensure that the function can handle both old-style comments and new threaded comments. Use the following updated code:

    Function VLOOKUPCMT_New(lookup_value As Variant, table_array As Range, col_index_num As Long, range_lookup As Long) As Variant
        Application.Volatile
        Dim xReturn As Variant
        Dim yCell As Range
        Dim commentThread As CommentThreaded
    
        xReturn = Application.Match(lookup_value, table_array.Columns(1), range_lookup)
        If IsError(xReturn) Then
            VLOOKUPCMT_New = "Not Found"
        Else
            Set yCell = table_array.Columns(col_index_num).Cells(1)(xReturn)
            VLOOKUPCMT_New = yCell.Value
            With Application.Caller
                ' Delete existing comment or threaded comment
                If Not .Comment Is Nothing Then .Comment.Delete
                If Not .CommentThreaded Is Nothing Then .CommentThreaded.Delete
                
                ' Add new threaded comment if exists
                If Not yCell.CommentThreaded Is Nothing Then
                    Set commentThread = yCell.CommentThreaded
                    .AddCommentThreaded commentThread.Text
                End If
            End With
        End If
    End Function
    

    Copy Comments Using UDF Function

    This will copy the comments. To copy notes use the previous code.

    Regards
    ExcelDemy

  48. Hello Neet,

    You are most welcome. We are glad to hear that our article solved your problem. Thanks for your appreciation. Keep learning Excel with us.

    Regards
    ExcelDemy

  49. Hello Tara Man,

    You are most welcome. We are glad to hear that you got what you needed. Keep learning Excel with us.

    Regards
    ExcelDemy

  50. Hello Muhammad Farg,

    Yes, there are multiple ways to merge data under same headlines. In this article we showed how to merge sheets step by step: How to Merge Sheets in Excel

    You can follow this VBA code to merge the data and arrange it at the same time under one headline:
    Before using the code make sure both of your sheets contains the same headings.
    Sheet1 & Sheet2:

    
    Sub combine_multiple_sheets()
    Dim Row_1, Col_1, Row_last, Column_last As Long
    Dim headers As Range
    Set WB = ThisWorkbook
    Set wX = WB.Sheets.Add
    wX.Name = "Consolidated"
    Set headers = Application.InputBox("Choose the Headers", Type:=8)
    headers.Copy wX.Range("A1")
    Row_1 = headers.Row + 1
    Col_1 = headers.Column
    For Each Ws In WB.Worksheets
        If Ws.Name <> "Consolidated" Then
            Ws.Activate
            Row_last = Cells(Rows.Count, Col_1).End(xlUp).Row
            Column_last = Cells(Row_1, Columns.Count).End(xlToLeft).Column
            Range(Cells(Row_1, Col_1), Cells(Row_last, Column_last)).Copy wX.Range("A" & wX.Cells(Rows.Count, 1).End(xlUp).Row + 1)
        End If
    Next Ws
    Worksheets("Consolidated").Activate
    End Sub
    

    Output:

    Excel File: Merge Data in Same Headings.xlsx

    Regards
    ExcelDemy

  51. Hello Agung,

    To handle the leave request for next month we updated our existing template. Added a new sheet to enter leave requests. Based on this sheet modified the existing formulas to consider leave request.

    You will get a roaster template without leave request:
    =IF(AND(INDEX(LeaveRequests!$B$2:$B$11,MATCH(‘Roster 24”7’!$B$8,LeaveRequests!$A$2:$A$11,0),1)<=E$7,INDEX(LeaveRequests!$C$2:$C$11,MATCH('Roster 24''7'!$B$8,LeaveRequests!$A$2:$A$11,0),1)>=E$7), IF(OR($C8=””,E$7=””), “”,IF(D8= “”,C8, INDEX(Settings_Shift_Legend,IF(MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1>COUNTA(Settings_Shift_Legend),1,MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1))))&”- On leave”, IF(OR($C8=””,E$7=””), “”,IF(D8= “”,C8, INDEX(Settings_Shift_Legend,IF(MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1>COUNTA(Settings_Shift_Legend),1,MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1)))))

    24x7 Shif Roaster Template

    Here is the formula to show leave requests:
    =IF(AND(INDEX(LeaveRequests!$B$2:$B$11,MATCH(‘Roster 24”7’!$B$8,LeaveRequests!$A$2:$A$11,0),1)<=E$7,INDEX(LeaveRequests!$C$2:$C$11,MATCH('Roster 24''7'!$B$8,LeaveRequests!$A$2:$A$11,0),1)>=E$7), IF(OR($C8=””,E$7=””), “”,IF(D8= “”,C8, INDEX(Settings_Shift_Legend,IF(MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1>COUNTA(Settings_Shift_Legend),1,MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1))))&” – Leave Req”, IF(OR($C8=””,E$7=””), “”,IF(D8= “”,C8, INDEX(Settings_Shift_Legend,IF(MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1>COUNTA(Settings_Shift_Legend),1,MATCH(RIGHT(D8,2),Settings_Shift_Legend,0)+1)))))

    24x7 Shift Roaster with Leave Requests

    Download the Excel File: 24×7 Shift Roaster Template with Leave Requests

    Regards
    ExcelDemy

  52. Hello Guadalupe Valdez,

    To get value from another workbook you can use the VLOOKUP function.

    In Worksheet2:
    In cell B2 Enter the following formula:
    =IFERROR(VLOOKUP($A2,[Worksheet1.xlsx]Sheet1!$A$2:$D$5, 2, FALSE), “”)
    This formula looks up the Slot number in A2 of Worksheet2 in the range A2
    of Worksheet1. The IFERROR function will return an empty string if no match is found.
    Then, drag the formula down to A440 cell.

    Use the same formula by changing the column number for First and Last name.

    In cell C2 of Worksheet2, enter the following formula:
    =IFERROR(VLOOKUP($A2, [Worksheet1.xlsx]Sheet1!$A$2:$D$440, 3, FALSE), “”)
    In cell D2 of Worksheet2, enter the following formula:
    =IFERROR(VLOOKUP($A2, [Worksheet1.xlsx]Sheet1!$A$2:$D$440, 4, FALSE), “”)
    Final Output:
    Get-Data-from-Another-Worksheet

    Here, I am attaching the Excel Files:
    Worksheet1.xlsxhttps://www.exceldemy.com/wp-content/uploads/2024/06/Worksheet2.xlsx
    Worksheet2.xlsx

    Regards
    ExcelDemy

  53. Hello Michelle,

    Yes, you can add a check in the VBA script to see if the search box is empty before proceeding with the search. If the search box is empty, the subroutine can exit early without performing any operations, preventing the script from unnecessarily processing all the data and causing lag.

    Here, added IsEmpty() and a simple comparison to an empty string (“”) to check if the Search_Cell is empty before running the rest of the code.
    If the search cell is empty, it displays a message box alerting the user and exits the subroutine early with Exit Sub.

    Sub SearchMultipleSheets()
        Main_Sheet = "VBA"
        Search_Cell = "B5"
        SearchType_Cell = "C5"
        Paste_Cell = "B9"
        Searched_Sheets = Array("Dataset 1", "Dataset 2")
        Searched_Ranges = Array("B5:F23", "B5:F23")
        Copy_Format = True
    
        ' Check if the search box is empty
        If IsEmpty(Sheets(Main_Sheet).Range(Search_Cell).Value) Or Sheets(Main_Sheet).Range(Search_Cell).Value = "" Then
            MsgBox "Search box is empty. Please enter a value to search.", vbExclamation
            Exit Sub
        End If
    
        Last_Row = Sheets(Main_Sheet).Range(Paste_Cell).End(xlDown).Row
        Last_Column = Sheets(Main_Sheet).Range(Paste_Cell).End(xlToRight).Column
        Set Used_Range = Sheets(Main_Sheet).Range(Cells(Range(Paste_Cell).Row, Range(Paste_Cell).Column), Cells(Last_Row, Last_Column))
        Used_Range.ClearContents
        Used_Range.ClearFormats
    
        Value1 = Sheets(Main_Sheet).Range(Search_Cell).Value
        Count = -1
    
        If Sheets(Main_Sheet).Range(SearchType_Cell).Value = "Case-Sensitive" Then
            Case_Sensitive = True
        ElseIf Sheets(Main_Sheet).Range(SearchType_Cell).Value = "Case-Insensitive" Then
            Case_Sensitive = False
        Else
            MsgBox ("Choose a Search Type.")
            Exit Sub
        End If
    
        For S = LBound(Searched_Sheets) To UBound(Searched_Sheets)
            Set Rng = Sheets(Searched_Sheets(S)).Range(Searched_Ranges(S))
            For i = 1 To Rng.Rows.Count
                For j = 1 To Rng.Columns.Count
                    Value2 = Rng.Cells(i, j).Value
                    If PartialMatch(Value1, Value2, Case_Sensitive) = True Then
                        Count = Count + 1
                        Rng.Rows(i).Copy
                        Set Paste_Range = Sheets(Main_Sheet).Cells(Range(Paste_Cell).Row + Count, Range(Paste_Cell).Column)
                        If Copy_Format = True Then
                            Paste_Range.PasteSpecial Paste:=xlPasteAll
                        Else
                            Paste_Range.PasteSpecial Paste:=xlPasteValues
                        End If
                    End If
                Next j
            Next i
        Next S
        Application.CutCopyMode = False
    End Sub
    

    Regards
    ExcelDemy

  54. Hello Derek,

    We are glad to hear that our solution helped you. Thanks for your appreciation. Keep learning Excel with us.

    Regards
    ExcelDemy

  55. Hello Yulissa Alvarez,

    Based on your given scenario created a dummy dataset to auto populate one sheet values based on information from another sheet.

    Here I used INDEX-MATCH functions to get data from another sheet dynamically.
    Use the following formulas:
    Task1: =INDEX(SheetC!$D$2:$D$13, MATCH(1, (SheetC!$A$2:$A$13=SheetB!$B2) * (SheetC!$B$2:$B$13=SheetB!$C2) * (SheetC!$C$2:$C$13=SheetB!$D2), 0))
    Task2: =INDEX(SheetC!$E$2:$E$13, MATCH(1, (SheetC!$A$2:$A$13=SheetB!$B2) * (SheetC!$B$2:$B$13=SheetB!$C2) * (SheetC!$C$2:$C$13=SheetB!$D2), 0))
    Task3: =INDEX(SheetC!$F$2:$F$13, MATCH(1, (SheetC!$A$2:$A$13=SheetB!$B2) * (SheetC!$B$2:$B$13=SheetB!$C2) * (SheetC!$C$2:$C$13=SheetB!$D2), 0))
    Task4: =INDEX(SheetC!$G$2:$G$13, MATCH(1, (SheetC!$A$2:$A$13=SheetB!$B2) * (SheetC!$B$2:$B$13=SheetB!$C2) * (SheetC!$C$2:$C$13=SheetB!$D2), 0))

    If you want to add more task just change the cell-refernce.
    Output:

    You can Download the Excel file:
    Auto Populate Values from Another Sheet

    Regards
    ExcelDemy

  56. Hello Michelle,

    The “Run-time error ‘9’: Subscript out of range” occurs when a specified sheet or range does not exist. Please check the sheet names and ranges in your Searched_Sheets and Searched_Ranges arrays are correctly spelled and match exactly with your Excel workbook.

    I made some changes in the code to check whether sheets and ranges exist in your Excel workbook.
    Make sure to update this according to your Excel workbook:
    Searched_Sheets = Array(“Dataset 1”, “Dataset 2”) # Update it with your sheet name.
    Searched_Ranges = Array(“B5:F23”, “B5:F23”) # Update it with your ranges.

    Added SheetExists function it will check if a sheet exists before accessing it.
    Error Handling will check for the existence of sheets to prevent “Subscript out of range” errors.

    Sub SearchMultipleSheets()
        Dim Main_Sheet As String
        Dim Search_Cell As String
        Dim SearchType_Cell As String
        Dim Paste_Cell As String
        Dim Searched_Sheets As Variant
        Dim Searched_Ranges As Variant
        Dim Copy_Format As Boolean
        Dim Last_Row As Long
        Dim Last_Column As Long
        Dim Used_Range As Range
        Dim Value1 As String
        Dim Case_Sensitive As Boolean
        Dim Count As Long
        Dim S As Integer
        Dim i As Long
        Dim j As Long
        Dim Rng As Range
        Dim Value2 As String
        Dim Paste_Range As Range
    
        ' Initialize variables
        Main_Sheet = "VBA"
        Search_Cell = "B5"
        SearchType_Cell = "C5"
        Paste_Cell = "B9"
        Searched_Sheets = Array("Dataset 1", "Dataset 2")
        Searched_Ranges = Array("B5:F23", "B5:F23")
        Copy_Format = True
    
        ' Clear the previous results
        Last_Row = Sheets(Main_Sheet).Cells(Range(Paste_Cell).Row, Range(Paste_Cell).Column).End(xlDown).Row
        Last_Column = Sheets(Main_Sheet).Cells(Range(Paste_Cell).Row, Range(Paste_Cell).Column).End(xlToRight).Column
        Set Used_Range = Sheets(Main_Sheet).Range(Cells(Range(Paste_Cell).Row, Range(Paste_Cell).Column), Cells(Last_Row, Last_Column))
        Used_Range.ClearContents
        Used_Range.ClearFormats
    
        ' Get the search value and type
        Value1 = Sheets(Main_Sheet).Range(Search_Cell).Value
        Count = -1
        If Sheets(Main_Sheet).Range(SearchType_Cell).Value = "Case-Sensitive" Then
            Case_Sensitive = True
        ElseIf Sheets(Main_Sheet).Range(SearchType_Cell).Value = "Case-Insensitive" Then
            Case_Sensitive = False
        Else
            MsgBox "Choose a Search Type."
            Exit Sub
        End If
    
        ' Search through the sheets and ranges
        For S = LBound(Searched_Sheets) To UBound(Searched_Sheets)
            If SheetExists(Searched_Sheets(S)) Then
                Set Rng = Sheets(Searched_Sheets(S)).Range(Searched_Ranges(S))
                For i = 1 To Rng.Rows.Count
                    For j = 1 To Rng.Columns.Count
                        Value2 = Rng.Cells(i, j).Value
                        If PartialMatch(Value1, Value2, Case_Sensitive) = True Then
                            Count = Count + 1
                            Rng.Rows(i).Copy
                            Set Paste_Range = Sheets(Main_Sheet).Cells(Range(Paste_Cell).Row + Count, Range(Paste_Cell).Column)
                            If Copy_Format = True Then
                                Paste_Range.PasteSpecial Paste:=xlPasteAll
                            Else
                                Paste_Range.PasteSpecial Paste:=xlPasteValues
                            End If
                        End If
                    Next j
                Next i
            Else
                MsgBox "Sheet " & Searched_Sheets(S) & " not found."
            End If
        Next S
        Application.CutCopyMode = False
    End Sub
    
    Function PartialMatch(Value1 As String, Value2 As String, Case_Sensitive As Boolean) As Boolean
        Dim Matched As Boolean
        Dim i As Long
    
        Matched = False
        For i = 1 To Len(Value2)
            If Case_Sensitive Then
                If Mid(Value2, i, Len(Value1)) = Value1 Then
                    Matched = True
                    Exit For
                End If
            Else
                If Mid(LCase(Value2), i, Len(Value1)) = LCase(Value1) Then
                    Matched = True
                    Exit For
                End If
            End If
        Next i
        PartialMatch = Matched
    End Function
    
    Function SheetExists(ByVal SheetName As String) As Boolean
        On Error Resume Next
        SheetExists = Not Sheets(SheetName) Is Nothing
        On Error GoTo 0
    End Function

    Regards
    ExcelDemy

  57. Hello Daniele,

    Buongiorno! Se la colonna della data è formattata correttamente ma la tabella pivot mostra ancora le date ogni giorno senza raggrupparle per mesi o anni, prova questi passaggi:

    Assicurati che tutte le date siano nel formato corretto e che non siano presenti valori di testo.
    Fai clic con il pulsante destro del mouse su qualsiasi data nella tabella pivot, seleziona “Gruppo” e scegli il raggruppamento desiderato (ad esempio, mesi o anni).
    Se il problema persiste, controlla le opzioni avanzate in Excel per assicurarti che l’opzione “Raggruppa date nel menu Filtro automatico” sia abilitata.

    Segui questi articoli per risolvere il tuo problema:

    [Fix] Cannot Group Dates in Pivot Table
    Excel Pivot Table Not Grouping Dates by Month (4 Solutions)
    How to Group Dates in Pivot Table: 7 Methods

    Good morning! If your date column is correctly formatted but the pivot table still shows dates daily without grouping by months or years, try these steps:

    1. Ensure all dates are in the correct format and there are no text values.
    2. Right-click any date in the pivot table, select “Group,” and choose the desired grouping (e.g., months or years).
    If this doesn’t work, check the advanced options in Excel to ensure ‘Group dates in the AutoFilter menu’ is enabled.

    If you still face problem, check out this articles:
    [Fix] Cannot Group Dates in Pivot Table
    Excel Pivot Table Not Grouping Dates by Month (4 Solutions)
    How to Group Dates in Pivot Table: 7 Methods

    Regards
    ExcelDemy

  58. Hello Lucy Jackson,

    Thanks for your appreciation, it means a lot to us. We are glad to hear that our article solved your problem. Keep learning Excel with us.

    Regards
    ExcelDemy

  59. Hello Tracy,

    Thanks for your appreciation, it means a lot to us. Keep learning Excel with us.

    Regards
    ExcelDemy

  60. Hello Zayaan,

    You are most welcome. Thanks for your appreciation. We have a category of pivot table and data analysis. We will create more pivot table for data analysis and power pivot. Keep learning Excel with us.

    Please explore our this section.
    Pivot Table in Excel
    Data Analysis in Excel
    Power Pivot

    Regards
    ExcelDemy

  61. Hello Bryan,

    You are most welcome. Thanks for your appreciation. Keep learning Excel with us.

    Regards
    ExcelDemy

  62. Hello Praveen

    As we used digit limit in our existing code that’s why it is showing this warning.

    Don’t worry! We have updated the existing VBA user-defined function to overcome the problem and work with much larger numbers. In the Indian numbering system, we use terms such as Thousand, Lakh, Crore, Arab, Kharab, Neel, Padma, and Shankh to express large numbers. So, the user-defined function will return the word-converted result using these terms. Moreover, we will use an Excel built-in TEXT function to get accurate results for huge numbers.

    Use the following updated code:

    Function AdvancedWord(SNum As String) As String
    
        Dim zDPInt As Integer
        Dim zArrPlace As Variant
        Dim zRStr_Paisas As String
        Dim zNumStr As String
        Dim zP As Integer
        Dim zTemp As String
        Dim zStrTemp As String
        Dim zRStr As String
    
        zArrPlace = Array("", " Thousand ", " Lakh ", " Crore ", " Arab ", " Kharab ", " Neel ", " Padma ", " Shankh ")
    
        If SNum = "" Then
            AdvancedWord = ""
            Exit Function
        End If
    
        zNumStr = Trim(CStr(SNum))
    
        If zNumStr = "" Then
            AdvancedWord = ""
            Exit Function
        End If
    
        zRStr = ""
    
        If (Val(zNumStr) >= 1E+19) Then
            AdvancedWord = "Digit exceeds Maximum limit"
            Exit Function
        End If
    
        zDPInt = InStr(zNumStr, ".")
    
        If zDPInt > 0 Then
            If (Len(zNumStr) - zDPInt) = 1 Then
                zRStr_Paisas = word_GetT(Left(Mid(zNumStr, zDPInt + 1) & "0", 2))
            ElseIf (Len(zNumStr) - zDPInt) > 1 Then
                zRStr_Paisas = word_GetT(Left(Mid(zNumStr, zDPInt + 1), 2))
            End If
            zNumStr = Trim(Left(zNumStr, zDPInt - 1))
        End If
    
        If InStr(zNumStr, "E") > 0 Then
            zNumStr = CDec(zNumStr)
        End If
    
        zP = 0
    
        Do While zNumStr <> ""
            If Len(zNumStr) > 2 Then
                If zP = 0 Then
                    zTemp = Right(zNumStr, 3)
                    zNumStr = Left(zNumStr, Len(zNumStr) - 3)
                Else
                    zTemp = Right(zNumStr, 2)
                    zNumStr = Left(zNumStr, Len(zNumStr) - 2)
                End If
            Else
                zTemp = zNumStr
                zNumStr = ""
            End If
    
            zStrTemp = ""
    
            If Val(zTemp) > 99 Then
                zStrTemp = word_GetH(Right(zTemp, 3), zP)
            ElseIf Val(zTemp) <= 99 And Val(zTemp) > 9 Then
                zStrTemp = word_GetT(Right(zTemp, 2))
            ElseIf Val(zTemp) < 10 Then
                zStrTemp = word_GetD(Right(zTemp, 2))
            End If
    
            If zStrTemp <> "" Then
                zRStr = zStrTemp & zArrPlace(zP) & zRStr
            End If
    
            zP = zP + 1
        Loop
    
        If zRStr = "" Then
            zRStr = "No Rupees"
        Else
            zRStr = "Rupees " & zRStr
        End If
    
        If zRStr_Paisas <> "" Then
            zRStr_Paisas = " and " & zRStr_Paisas & " Paisas"
        End If
    
        AdvancedWord = zRStr & zRStr_Paisas & " Only"
    
    End Function
    
    Function word_GetH(zStrH As String, zP As Integer) As String
        
        Dim zRStr As String
    
        If Val(zStrH) < 1 Then
            word_GetH = ""
            Exit Function
        Else
            zStrH = Right("000" & zStrH, 3)
            If Mid(zStrH, 1, 1) <> "0" Then
                zRStr = word_GetD(Mid(zStrH, 1, 1)) & " Hundred "
            End If
    
            If Mid(zStrH, 2, 1) <> "0" Then
                zRStr = zRStr & word_GetT(Mid(zStrH, 2))
            Else
                zRStr = zRStr & word_GetD(Mid(zStrH, 3))
            End If
        End If
    
        word_GetH = zRStr
    
    End Function
    
    Function word_GetT(zTStr As String) As String
        
        Dim zTArr1 As Variant
        Dim zTArr2 As Variant
        Dim zRStr As String
    
        zTArr1 = Array("Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen")
        zTArr2 = Array("", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety")
    
        If Val(Left(zTStr, 1)) = 1 Then
            zRStr = zTArr1(Val(Mid(zTStr, 2, 1)))
        Else
            If Val(Left(zTStr, 1)) > 0 Then
                zRStr = zTArr2(Val(Left(zTStr, 1)) - 1)
            End If
            zRStr = zRStr & word_GetD(Right(zTStr, 1))
        End If
    
        word_GetT = zRStr
        
    End Function
    
    Function word_GetD(zDStr As String) As String
        
        Dim zArr_1 As Variant
    
        zArr_1 = Array(" One", " Two", " Three", " Four", " Five", " Six", " Seven", " Eight", " Nine", "")
    
        If Val(zDStr) > 0 Then
            word_GetD = zArr_1(Val(zDStr) - 1)
        Else
            word_GetD = ""
        End If
        
    End Function

    Press Alt plus F11, click on Insert followed by Module, paste the given code in the module and Save

  63. Return to the sheet and select the intended cell.
  64. Apply the following formula: =AdvancedWord(TEXT(A1,"#.00"))
  65. Drag the Fill Handle icon to copy the formula down.
    Choose the intended cell, apply the given formula, drag the Fill Handle icon to copy the formula down
  66. Hopefully, you have found the solution you were looking for. I have attached the solution workbook as well. Good luck.

    DOWNLOAD SOLUTION WORKBOOK

    Regards
    ExcelDemy

  • Dear,

    Thanks for your appreciation. Keep learning Excel with us.

    Regards
    ExcelDemy

  • Hello Lisa,

    We are glad to hear that our article helped you. It means a lot to us. Keep Learning Excel with us.

    Regards
    ExcelDemy

  • Hello Alphonse

    Thanks for sharing an important aspect of variable declaration. You are absolutely correct.

    In VBA, when we declare multiple variables in a single line, like Dim Str1, Str2, Str3, Str4, Str5 As String, only the last variable (in this case, Str5) is declared as the specified type (String). The others (Str1, Str2, Str3, and Str4) are implicitly declared as Variant types. So, If we expect all variables to hold string values, declaring them explicitly as String ensures they behave consistently.

    Why This Matters: Variants consume more memory than specific types like String. Explicit type declarations help prevent errors related to type mismatches. Moreover, string operations like concatenation might behave differently if the variable is not explicitly declared as a String. Again, If we perform validations or transformations assuming the data type is String, having a Variant could lead to bugs or incorrect results.

    So, our Improved Excel VBA Sub-procedure can be following:

    Sub Multiple_Lines()
        
        'variable declaration
        Dim Str1 As String, Str2 As String, Str3 As String, Str4 As String, Str5 As String
        
        Str1 = Range("B4")
        Str2 = Range("C4")
        Str3 = Range("D4")
        Str4 = Range("E4")
        Str5 = Range("F4")
        
        'create MsgBox with a new line
        MsgBox "The following information has been given" _
        & vbNewLine & Str1 & "," & Str2 & "," _
        & Str3 & "," & Str4 & "," & Str5
    
    End Sub

    Thanks again for sharing your expertise in ExcelDemy Community. Stay blessed.

    Regards
    ExcelDemy

  • Hello Lisa,

    Yes, you can streamline data copied from a bank statement in a Word document to an Excel spreadsheet.
    Follow the steps given below:

    1. Copy the data from your Word document.
    2. Open Excel and paste the data into a spreadsheet.
    3. Use the “Text to Columns” feature in Excel to split the data into columns based on delimiters like spaces or tabs.
    4. Organize the data by month using Excel’s sorting and filtering tools.

    You can follow this articles too: How to Copy from Word to Excel into Multiple Cells (3 Ways)
    How to Convert Word Table to Excel Spreadsheet: 6 Quick Methods
    How to Convert Word to Excel Keeping the Formatting – 2 Easy Methods
    How to Convert Word to Excel with Columns (2 Methods)

    Regards
    ExcelDemy

  • Hello John Facey,

    Yes, Excel has a limitation in handling very large numbers due to its floating-point arithmetic, which can lead to precision errors. When squaring 111,111,111, the correct result is 12,345,678,987,654,321, but Excel is displaying 12,345,678,987,654,300 due to this limitation. This discrepancy is because Excel can only precisely handle integers up to 15 digits. To get the exact result, consider using specialized software or programming languages that support arbitrary-precision arithmetic.

    Regards
    ExcelDemy

  • Hello Sia,

    To modify the VBA code to round up the sum result to the nearest integer, you can use the Application.WorksheetFunction.Ceiling function. Use the following updated code to get your desired result:

    Function SumByColor(CellColor As Range, SumRange As Range)
        Dim SumResult As Double
        Dim Cell As Range
    
        Application.Volatile
    
        For Each Cell In SumRange
            If Cell.Interior.Color = CellColor.Interior.Color Then
                SumResult = SumResult + Cell.Value
            End If
        Next Cell
    
        SumByColor = Application.WorksheetFunction.Ceiling(SumResult, 1)
    End Function
    

    The formula will be : =SumByColor(A1, A1:C1)

    Comment-reply-of-color-cells

    Regards
    ExcelDemy

  • Hello Alphonse,

    You are most welcome Your appreciation means a lot to us.

    Regards
    ExcelDemy

  • Hello J,

    Thanks for your comment and for noticing the fact! You are right about losing conditional formatting when the pivot table is refreshed.

    When a pivot table is refreshed, custom formatting will reset because the data structure may change; for example, new rows or columns might be added. Excel may not reapply the formatting rules applied to specific cells if the layout of the pivot table changes. So, in this case, you need to manually reapply the conditional formatting rules each time the pivot table is refreshed.

    Regards
    ExcelDemy

  • Hello Enrique Rafhael

    Thanks for visiting our blog and sharing your problem. The existing formula returns an array containing both latitude and longitude. If you are not using Microsoft 365, you need to press Ctrl+Shift+Enter instead of pressing Enter.

    However, If you want to avoid returning an array and want to get latitude and longitude individually, follow these steps:

    1. Press Alt+F11 to open VBA Editor.
    2. Click on Insert, followed by Module.
    3. Paste the following code in the module and save it:
      Option Explicit
      
      Private Const WGS84_A As Double = 6378137#
      Private Const WGS84_E As Double = 0.081819190842622
      
      Function UTMToLatitude(Easting As Double, Northing As Double, Zone As String) As Double
      
          Dim zoneNumber As Integer
          Dim zoneLetter As String
          Dim latitude As Double
      
          zoneNumber = Val(Left(Zone, Len(Zone) - 1))
          zoneLetter = Right(Zone, 1)
      
          Call ConvertUTMToLat(Easting, Northing, zoneNumber, zoneLetter, latitude)
      
          UTMToLatitude = latitude
      
      End Function
      
      Function UTMToLongitude(Easting As Double, Northing As Double, Zone As String) As Double
      
          Dim zoneNumber As Integer
          Dim zoneLetter As String
          Dim longitude As Double
      
          zoneNumber = Val(Left(Zone, Len(Zone) - 1))
          zoneLetter = Right(Zone, 1)
      
          Call ConvertUTMToLon(Easting, Northing, zoneNumber, zoneLetter, longitude)
      
          UTMToLongitude = longitude
      
      End Function
      
      Sub ConvertUTMToLat(Easting As Double, Northing As Double, zoneNumber As Integer, zoneLetter As String, ByRef latitude As Double)
      
          Dim k0 As Double
          k0 = 0.9996
      
          Dim E As Double, N As Double
          Dim A As Double, eccSquared As Double, eccPrimeSquared As Double
          Dim M As Double, mu As Double
          Dim e1 As Double, J1 As Double, J2 As Double, J3 As Double, J4 As Double, J5 As Double
          Dim FPhi1 As Double, C1 As Double, T1 As Double, R1 As Double, N1 As Double, D As Double
      
          E = Easting - 500000#
          If UCase(zoneLetter) < "N" Then
              N = Northing - 10000000#
          Else
              N = Northing
          End If
      
          A = WGS84_A
          eccSquared = WGS84_E ^ 2
          eccPrimeSquared = eccSquared / (1 - eccSquared)
      
          M = N / k0
          mu = M / (A * (1 - eccSquared / 4 - 3 * eccSquared ^ 2 / 64 - 5 * eccSquared ^ 3 / 256))
      
          e1 = (1 - Sqr(1 - eccSquared)) / (1 + Sqr(1 - eccSquared))
      
          J1 = 3 * e1 / 2 - 27 * e1 ^ 3 / 32
          J2 = 21 * e1 ^ 2 / 16 - 55 * e1 ^ 4 / 32
          J3 = 151 * e1 ^ 3 / 96
          J4 = 1097 * e1 ^ 4 / 512
      
          FPhi1 = mu + J1 * Sin(2 * mu) + J2 * Sin(4 * mu) + J3 * Sin(6 * mu) + J4 * Sin(8 * mu)
      
          C1 = eccPrimeSquared * Cos(FPhi1) ^ 2
          T1 = Tan(FPhi1) ^ 2
          R1 = A * (1 - eccSquared) / (1 - eccSquared * Sin(FPhi1) ^ 2) ^ 1.5
          N1 = A / Sqr(1 - eccSquared * Sin(FPhi1) ^ 2)
          D = E / (N1 * k0)
      
          latitude = FPhi1 - (N1 * Tan(FPhi1) / R1) * (D ^ 2 / 2 - (5 + 3 * T1 + 10 * C1 - 4 * C1 ^ 2 - 9 * eccPrimeSquared) * D ^ 4 / 24 + (61 + 90 * T1 + 298 * C1 + 45 * T1 ^ 2 - 252 * eccPrimeSquared - 3 * C1 ^ 2) * D ^ 6 / 720)
          latitude = latitude * 180 / Application.WorksheetFunction.Pi()
      
      End Sub
      
      Sub ConvertUTMToLon(Easting As Double, Northing As Double, zoneNumber As Integer, zoneLetter As String, ByRef longitude As Double)
      
          Dim k0 As Double
          k0 = 0.9996
      
          Dim E As Double, N As Double
          Dim A As Double, eccSquared As Double, eccPrimeSquared As Double
          Dim M As Double, mu As Double
          Dim e1 As Double, J1 As Double, J2 As Double, J3 As Double, J4 As Double, J5 As Double
          Dim FPhi1 As Double, C1 As Double, T1 As Double, R1 As Double, N1 As Double, D As Double
      
          E = Easting - 500000#
          If UCase(zoneLetter) < "N" Then
              N = Northing - 10000000#
          Else
              N = Northing
          End If
      
          A = WGS84_A
          eccSquared = WGS84_E ^ 2
          eccPrimeSquared = eccSquared / (1 - eccSquared)
      
          M = N / k0
          mu = M / (A * (1 - eccSquared / 4 - 3 * eccSquared ^ 2 / 64 - 5 * eccSquared ^ 3 / 256))
      
          e1 = (1 - Sqr(1 - eccSquared)) / (1 + Sqr(1 - eccSquared))
      
          J1 = 3 * e1 / 2 - 27 * e1 ^ 3 / 32
          J2 = 21 * e1 ^ 2 / 16 - 55 * e1 ^ 4 / 32
          J3 = 151 * e1 ^ 3 / 96
          J4 = 1097 * e1 ^ 4 / 512
      
          FPhi1 = mu + J1 * Sin(2 * mu) + J2 * Sin(4 * mu) + J3 * Sin(6 * mu) + J4 * Sin(8 * mu)
      
          C1 = eccPrimeSquared * Cos(FPhi1) ^ 2
          T1 = Tan(FPhi1) ^ 2
          R1 = A * (1 - eccSquared) / (1 - eccSquared * Sin(FPhi1) ^ 2) ^ 1.5
          N1 = A / Sqr(1 - eccSquared * Sin(FPhi1) ^ 2)
          D = E / (N1 * k0)
      
          longitude = (D - (1 + 2 * T1 + C1) * D ^ 3 / 6 + (5 - 2 * C1 + 28 * T1 - 3 * C1 ^ 2 + 8 * eccPrimeSquared + 24 * T1 ^ 2) * D ^ 5 / 120) / Cos(FPhi1)
          longitude = zoneNumber * 6 - 183 + longitude * 180 / Application.WorksheetFunction.Pi()
      
      End Sub

    4. Return to the sheet and choose cell E6.
    5. Apply the following formula and hit Enter: =UTMToLatitude($B6, $C6, $D6)
    6. Now, drag the Fill Handle icon to cell E16.
    7. Again, choose cell F6 and apply the formula: =UTMToLongitude($B6, $C6, $D6)
    8. Drag the Fill Handle icon to copy the formula down.

    Hopefully, following this procedure, you can avoid returning an array. Good luck.

    Regards
    ExcelDemy

  • Hello Onkar,

    Please try this updated VBA code. Replace “C:\YourFolderPath\” with the path to your files. This updated code will ensures headers are copied only from the first file.

    
    Sub MergeFiles()
        Dim FolderPath As String, Filename As String, Sheet As Worksheet
        Dim HeaderCopied As Boolean
        FolderPath = "C:\YourFolderPath\"
        Filename = Dir(FolderPath & "*.xlsx")
        HeaderCopied = False
    
        Do While Filename <> ""
            With Workbooks.Open(Filename:=FolderPath & Filename)
                For Each Sheet In .Sheets
                    If HeaderCopied = False Then
                        Sheet.Rows(1).Copy Destination:=ThisWorkbook.Sheets(1).Range("A1")
                        HeaderCopied = True
                    End If
                    Sheet.Rows("2:" & Sheet.Rows.Count).Copy _
                        Destination:=ThisWorkbook.Sheets(1).Range("A" & ThisWorkbook.Sheets(1).Cells(Rows.Count, 1).End(xlUp).Row + 1)
                Next Sheet
                .Close False
            End With
            Filename = Dir
        Loop
    End Sub
    

    Regards
    ExcelDemy

  • Hello Cosmin,

    To fix your issue, use the following formula.
    Improved Excel Formula: =INT(B5/300) & ” days ” & INT(MOD(B5/300, 1) * 5) & ” hours ” & MOD(B5, 60) & ” minutes”

    Regards
    ExcelDemy

  • Hello Rebecca,

    Thanks for your compliments! Your appreciation means a lot to us.

    You can create a countdown from a specific date, excluding weekends and holidays, using a combination of the TODAY, ABS and NETWORKDAYS.INTL functions in Excel.

    Excel Formula: =ABS(NETWORKDAYS.INTL($C5,TODAY(),1,$C$11:$D$12))

    Comment-reply-of-countdown

    Hopefully, you have found the solution you were looking for. You can download the workbook used to solve your problem from the following link:
    CountDown Excel File.xlsx

    Regards
    ExcelDemy

  • Hello Mp3 juice,

    You are most welcome. Thanks for your appreciation. Our free templates are ready to use.

    Regards
    ExcelDemy

  • Hello Valarmathi,

    You are most welcome. Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Emrah,

    You are most welcome. To adapt DeepL you may use third party Add-ins, Power Query and VBA code. But VBA code will be more complex as you need to use JSON converter.

    You can use the Add-ins “Text Translator for Excel”
    DeepL Translator

    Using Power Query with DeepL API

    Use the Power Query to call the DeepL API directly from Excel.
    Follow the steps given below:

    Step 1: Get Your API Key from DeepL
    Sign up on the DeepL website and get your API key.
    Step 2: Open Excel and Launch Power Query
    Open Data tab > from Other Sources > select Web.

    Step 3: Configure the API Request
    In the Web dialog box, enter the DeepL API URL with your query parameters,
    Insert YOUR_API_KEY with your actual API key and modify the text and target_lang parameters as needed.
    Then click OK.

    Step 4: Transform the Data
    Power Query will open a new window with the API response.
    Use the available transformation tools to parse the JSON response and extract the translated text.
    Finally, Close & Load to import the data back into Excel.

    Regards
    ExcelDemy

  • Hello Umeeksha Sharma,

    Thank you for sharing your solution! Creating a new Excel file and importing the problematic file is indeed a practical approach. This method can help ensure the dates are correctly categorized in years and months format. If you need further assistance or have any other tips to share, feel free to let us know!

    Regards
    ExcelDemy

  • Hello IDn,

    Thanks for your appreciation. It means a lot to us.

    Regards
    ExcelDemy

  • Hello Amara,

    Here I’m attaching a sample dataset for CRM and Supply chain. You can modify this dataset based on your requirements.
    Dataset of CRM:CRM Dataset.xlsx
    Dataset of Supply Chain: Supply Chain Dataset.xlsx

    Regards
    ExcelDemy

  • Hello Abdul,

    Excel file is given in the download section of the article. You also can download the template with formula from this link : Ageing Formula 30 60 90 Days.xlsx

    Regards
    ExcelDemy

  • Hello Michael George Eichbaum,

    Can you please specify which portion of the article seems complex or hard to you? We will update this part for you.
    But this is the easiest way to insert horizontal slicer in Excel.

    Regards
    ExcelDemy

  • Hello Nhung,

    Your appreciation means a lot to us. We are glad that our article helped you to fix your issues.

    Regards
    ExcelDemy

  • Hello John,

    You are most welcome. Glad to hear that it saved you from fiddling tasks.

    Regards
    ExcelDemy

  • Hello Slides Downloader,

    We are glad to hear that it worked for you and you got relief from frustrating tasks. Thanks for your appreciation. It means a lot to us.

    Regards
    ExcelDemy

  • Hello Merry Gizaw,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Laura,

    Sorry to hear your issue. Here, I am suggesting some troubleshooting steps to resolve the problem. But I will encourage you to submit your Excel file in our ExcelDemy Forum so that we can inspect it thoroughly.

    1. Remove Non-Printable Characters:

    Use =CLEAN(C2) to clean the data.

    2. Check for Merged Cells:

    Ensure there are no merged cells in your dataset.
    Data Consistency:

    3. Make sure all data in Column C are of the same type (text).

    4. Sort by Multiple Columns:

    Use Data > Sort,
    and add levels to sort by Column C first and then Column E.

    5. Manual Inspection:

    Check the middle section where the sort restarts for any anomalies.

    6. New Worksheet:

    Copy and paste the data into a new worksheet and try sorting again.

    Regards
    ExcelDemy

  • Hello Selva,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Kitonski,

    Here, I made some fixes. Please try this updated code:
    Used the shell.Run command which is synchronous (True as the last parameter), ensuring the Python script completes before the VBA code proceeds.
    Using the Now function to calculate the start and end times accurately.
    To be safe used the Shell execution uses the correct quotation marks to avoid syntax errors.

    Sub RunPythonScript()
    
        Dim exe As String, pth As String
        Dim fileToOpen As Variant
        Dim wsMaster As Worksheet
        Dim wbTextImport As Workbook
        Dim myDir As String
        Dim startTime As Doubleks:
        Dim endTime As Double
        Dim totalTime As Double
        Dim shell As Object
        Dim command As String
    
        myDir = "C:\Users\uie34719\OneDrive – Continental AG\Documents\CONTINENTAL FILES\PERSONAL FILES\REVIEWER-1\DEVNET\OTHERS\PROJECT\SHOWOFF"
    
        exe = "C:\Users\uie34719\AppData\Local\Programs\Python\Python39\python.exe"
        pth = "C:\Users\uie34719\OneDrive – Continental AG\Documents\CONTINENTAL FILES\PERSONAL FILES\REVIEWER-1\DEVNET\OTHERS\PROJECT\SHOWOFF\Main_Network_Script-WithCSV.py"
    
        startTime = Now
    
        Set shell = CreateObject("WScript.Shell")
        command = """" & exe & """ """ & pth & """"
        shell.Run command, 1, True ' The last parameter True makes the execution synchronous
    
        endTime = Now
        totalTime = (endTime - startTime) * 24 * 60 * 60 ' Convert time difference to seconds
    
        MsgBox totalTime & " seconds"
    
        ' Schedule OkGo to run after the total time
        Application.OnTime Now + TimeValue("0:00:" & Round(totalTime)), "OkGo", schedule:=True
    
    End Sub
    
    Sub OkGo()
    
        Dim fileToOpen As String
        Dim wsMaster As Worksheet
        Dim wbTextImport As Workbook
    
        Range("E2:H1048576").ClearContents
    
        fileToOpen = "C:\Users\uie34719\OneDrive – Continental AG\Documents\CONTINENTAL FILES\PERSONAL FILES\REVIEWER-1\DEVNET\OTHERS\PROJECT\SHOWOFF\1CSV_OUTPUT.csv"
    
        Workbooks.OpenText fileToOpen
    
        Set wbTextImport = ActiveWorkbook
    
        Set wsMaster = ThisWorkbook.Worksheets("Main_Template")
    
        wbTextImport.Worksheets(1).Range("A1").CurrentRegion.Copy wsMaster.Range("E2")
    
        wbTextImport.Close False
    
    End Sub
    

    Regards
    ExcelDemy

  • Hello Hassan Ibrahim Mohammed,

    Hope you are doing well. I will suggest you to go through the article again. You can download the dataset to try the calculations.

    1: Likert Scale Range and Its Effect on Final Results

    Here, each Likert scale response (ranging from 1 to 5) is assigned a numerical value. These values are added up for each respondent to get a total score. For example, if a respondent’s answers to five questions are 4, 3, 5, 2, and 1, the total score is 15. This summed score helps in analyzing the overall sentiment or opinion of the respondents. Higher scores indicate more positive responses, while lower scores indicate more negative responses.

    2: Adding Non-Parametric Tests to Excel
    To add non-parametric tests like the Mann-Whitney U test or the Kruskal-Wallis test to your Excel sheet, you can use the dataset from the article. But Excel does not have built-in non-parametric test functions, you need to manually calculate them using formulas and the Data Analysis ToolPak (If not available in Ribbon, get it from Excel options). For example, you can rank your Likert scale data using the RANK function and then apply the necessary formulas to perform the tests. It may require detailed setup and understanding of the test procedures, but it can be done effectively in Excel.

    Regards
    ExcelDemy

  • Hello Patricia,

    To solve this issue:
    First, add columns for monthly interest and new balance.
    Then, for each debt, include columns for monthly interest and new balance.

    Use the following formula to calculate monthly interest:

    Monthly Interest = Previous Balance * (Annual Interest Rate / 12)

    Example:
    Debt 1 (D2): =C2*0.17/12
    Debt 2 (H2): =G2*0.19/12
    Debt 3 (L2): =K2*0.20/12

    Use the following formula to calculate new balance:

    New Balance = Previous Balance + Monthly Interest – Payment

    Example:
    Debt 1 (E2): =C2+D2-B2
    Debt 2 (I2): =G2+H2-F2
    Debt 3 (M2): =K2+L2-J2

    Regards
    ExcelDemy

  • Hello Sandy,

    You can use this formula:
    =OR(WEEKDAY([@DATE], 2) = 6, WEEKDAY([@DATE], 2) = 7)
    This checks if the [@DATE] column value is a Saturday (6) or Sunday (7).

    Regards
    ExcelDemy

  • Hello Poppy Lukhele,

    Could you be more specific? If possible share any sample data.

    Regards
    ExcelDemy

  • Hello Mary Grace,

    Please use this updated code to get your desired result:
    Here I added an input box to select the column with the names of the recipients (XRcptsName ). Then, updated the email body to include the recipient’s actual name and removed the word “text.”

    Public Sub SendReminderMail()
    'Declare the variables
        Dim XDueDate As Range
        Dim XRcptsEmail As Range
        Dim XRcptsName As Range
        Dim xMailContent As Range
        Dim xRngDn As Range
        Dim xCrtOut As Object
        Dim xValDateRng As String
        Dim xValSendRng As String
        Dim k As Long
        Dim xMailSections As Object
        Dim xFinalRw As Long
        Dim CrVbLf As String
        Dim xMsg As String
        Dim xSubEmail As String
        On Error Resume Next
        'To select the date column insert a input box
        Set XDueDate = Application.InputBox("Select the column for Deadline/Due Date date column:", "ExcelDemy", , , , , , 8)
        If XDueDate Is Nothing Then Exit Sub
        'Insert a input box for selecting the recipients
        Set XRcptsEmail = Application.InputBox("Choose the column for the email addresses of the recipients:", "ExcelDemy", , , , , , 8)
        If XRcptsEmail Is Nothing Then Exit Sub
        Set XRcptsName = Application.InputBox("Choose the column for the name of the recipients:", "ExcelDemy", , , , , , 8)
        If XRcptsName Is Nothing Then Exit Sub
        'To enter the text mail, insert a input box
        Set xMailContent = Application.InputBox("In your email, choose the column with the reminded text:", "ExcelDemy", , , , , , 8)
        If xMailContent Is Nothing Then Exit Sub
        'Count rows for the due dates
        xFinalRw = XDueDate.Rows.Count
        Set XDueDate = XDueDate(1)
        Set XRcptsEmail = XRcptsEmail(1)
        Set xMailContent = xMailContent(1)
        Set XRcptsName = XRcptsName(1)
        'Set command to open MS Outlook Application
        Set xCrtOut = CreateObject("Outlook.Application")
        
        'Apply For loop to conduct the operation in each row one by one
        For k = 1 To xFinalRw
            xValDateRng = ""
            xValDateRng = XDueDate.Offset(k - 1).Value
            'Apply If condition for the Due Date values
            If xValDateRng <> "" Then
            'Condition set to send mail if the difference between due dates and current date is greater than 1 and less than 7 days
            'Means 1 < X< 7, X = Due Date - Current Date
            If CDate(xValDateRng) - Date <= 7 And CDate(xValDateRng) - Date > 0 Then
                xValSendRng = XRcptsEmail.Offset(k - 1).Value
                'Create the subject, body and text contents with the required variables
                xSubEmail = xMailContent.Offset(k - 1).Value & " on " & xValDateRng
                CrVbLf = "<br><br>"
                xMsg = "<HTML><BODY>"
                xMsg = xMsg & "Dear " & XRcptsName.Offset(k - 1).Value & CrVbLf
                xMsg = xMsg & xMailContent.Offset(k - 1).Value & CrVbLf
                xMsg = xMsg & "</BODY></HTML>"
                'Create the email
                Set xMailSections = xCrtOut.CreateItem(0)
                'Define the position to place the Subject, Body and Recipients Address
                With xMailSections
                    .Subject = xSubEmail
                    .To = xValSendRng
                    .HTMLBody = xMsg
                    .Display
                    
                    '.Send
                
                End With
                Set xMailSections = Nothing
            End If
        End If
        Next
        Set xCrtOut = Nothing
    End Sub
    

    Regards
    ExcelDemy

  • Hello Paul Tupper,

    Yes, we can use this formula too. Thanks for your suggestions, we really appreciate it.

    Regards
    ExcelDemy

  • Hello Paul Tupper,

    Of course, you can use this formula too. Both are doing the same calculations. Our formula is simpler nothing else. Thanks for your suggestions, we really appreciate it.

    Regards
    ExcelDemy

  • Hello George Jululian,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Hen,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Jeromy Adofo,

    You are most welcome. please stay connected with us.

    Regards
    ExcelDemy

  • Hello Myron,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Aleksandar,

    You can concatenate the cell values into a single string to get one QR code from different cell values.

    You can use the following code:

    Sub GenerateQRCode()
        Dim ws As Worksheet
        Set ws = ThisWorkbook.Sheets("Sheet1") ' Change the sheet name as necessary
        
        Dim cell As Range
        Dim qrString As String
        qrString = ""
        
        ' Loop through the cells you want to include in the QR code
        For Each cell In ws.Range("A1:A10") ' Specify your range
            qrString = qrString & cell.Value & " " ' Concatenate values with a separator if needed
        Next cell
        
        ' Generate QR Code
        Dim qrCode As Object
        Set qrCode = ws.Pictures.Insert("https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=" & qrString)
        
        With qrCode
            .ShapeRange.LockAspectRatio = msoFalse
            .Width = 150
            .Height = 150
            .Left = ws.Cells(1, 3).Left
            .Top = ws.Cells(1, 3).Top
        End With
    End Sub

    Regards
    ExcelDemy

  • Hello Muhammad Afzaal Jutt,

    You need to use a combination of functions like SUBSTITUTE, TEXTJOIN, FILTERXML, and SUM. Currently, Excel does not directly provide a simple formula for this without VBA.

    You can use the following formula:
    =SUM(FILTERXML("<t><s>" & SUBSTITUTE(SUBSTITUTE(A1, " ", "</s><s>"), "$", "") & "</s></t>", "//s[number(.)=.]"))

    Regards
    ExcelDemy

  • Hello Ckwong,

    To get the result as State Name. You need to use the state name column as an array of INDEX function. Just replace the cell range from C5:C12 to B5:B12.
    You can use the following formula:
    =INDEX(B5:B12, MATCH(TRUE, INDEX(C5:C12>700000, 0), 0))

    Regards
    ExcelDemy

  • Hello Esraa Yaseen,

    You are most welcome. We are glad to help you.

    Regards
    ExcelDemy

  • Hello Prabhakar Srinivasagam,

    You are most welcome. Your kind words means a lot to us. We are always here to help you.

    Regards
    ExcelDemy

  • Hello Abinsh,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Jen,

    Thanks for coming back, hopefully it will work this time. If it doesn’t work, you can let us know your problem in the comment section below.

    Regards
    ExcelDemy

  • Hello Usama Jamil,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Atif Hassan,

    Thanks for your appreciation. You can use the following formula to use XLOOKUP with tolerance level:
    =XLOOKUP(TRUE, IF(ABS($C$2:$C$4 – $A$2) <= $B$2, TRUE, FALSE), $D$2:$D$4, "Not Found")

    https://www.exceldemy.com/wp-content/uploads/2024/05/XLOOKUP-Based-on-Customized-Criteria.gif

    Please download the Excel file for better understanding:
    XLOOKUP with Tolerance Level.xlsx

    Regards
    ExcelDemy

  • Hello Danielle Davies,

    You are most welcome. Your appreciation means a lot to us.

    Regards
    ExcelDemy

  • Hello Vito,

    Don’t be sorry Vito. Let us know your feedback, hopefully it will work.

    Regards
    ExcelDemy

  • Hello Jose,

    You are most welcome. Your appreciation means a lot to us.

    Regards
    ExcelDemy

  • Hell MM,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Michael,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello T Althoff,

    Our updated article indeed includes three templates of different cases, each addressing different scenarios. You can modify these templates to recalculate interest and principal based on irregular payment dates, they offer versatile solutions for various other scenarios.

    Regards
    ExcelDemy

  • Hello Reza Fadlilah,

    Here are some articles from where you can download dataset of different types to practice your skills.
    Excel Sample Data (Free Download 13 Sample Datasets)
    Excel Data for Analysis (Free Download 11 Suitable Datasets)
    Excel Data for Practice Free Download

    Regards
    ExcelDemy

  • Dear Ayebusiwa Oyesanmi Emmanuel,

    Answers are given in the Solution sheet of Excel File which is in Download Practice Workbook section.
    Answer sheet

    Soluation-of-Advanced-MCQs-for-Exam

    Regards
    ExcelDemy

  • Hello Emon,

    You can download the Cheat Sheet free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email to get the download links.

    Best Regards
    ExcelDemy

  • Hello Abdul,

    It’s glad to hear and you are most welcome.

    Regards
    ExcelDemy

  • Hello Rhonda Rodriguez,

    Thanks for your appreciation. You are most welcome.

    Regards
    ExcelDemy

  • Hello Michailmqo,

    You can mail to [email protected].

    Regards
    ExcelDemy

  • Hello Rajkapoor,

    Thanks for your appreciation and you are most welcome.

    Regards
    ExcelDemy

  • Hello Deborah Yassen,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Kukuh Romansyah,

    You are most welcome (Sama-sama). It’s glad to hear that you found it useful.

    Regards
    ExcelDemy

  • Hello Lukas Cenjar,

    This VBA code won’t work on MAC but here we are giving you a sample code that might work on MAC. We updated our existing code based on MAC requirements.
    1. We used AppleScript to interact with the Mail application on macOS to create and send the email.
    2. Then, used MacScript to run AppleScript commands from VBA to handle Mac-specific scenarios.

    Public Sub SendReminderMail()
        'Declare the variables
        Dim XDueDate As Range
        Dim XRcptsEmail As Range
        Dim xMailContent As Range
        Dim xFinalRw As Long
        Dim xValDateRng As String
        Dim xValSendRng As String
        Dim k As Long
        Dim xSubEmail As String
        Dim xMsg As String
        Dim AppleScript As String
    
        'Input box for the deadline/due date column
        Set XDueDate = Application.InputBox("Select the column for Deadline/Due Date date column:", "ExcelDemy", Type:=8)
        If XDueDate Is Nothing Then Exit Sub
        
        'Input box for email addresses
        Set XRcptsEmail = Application.InputBox("Choose the column for the email addresses of the recipients:", "ExcelDemy", Type:=8)
        If XRcptsEmail Is Nothing Then Exit Sub
        
        'Input box for email content
        Set xMailContent = Application.InputBox("In your email, choose the column with the reminded text:", "ExcelDemy", Type:=8)
        If xMailContent Is Nothing Then Exit Sub
        
        'Count rows for due dates
        xFinalRw = XDueDate.Rows.Count
    
        'Loop through each row
        For k = 1 To xFinalRw
            xValDateRng = XDueDate.Cells(k).Value
            
            'Check if the due date is within the next week
            If xValDateRng <> "" And CDate(xValDateRng) - Date <= 7 And CDate(xValDateRng) - Date > 0 Then
                xValSendRng = XRcptsEmail.Cells(k).Value
                xSubEmail = xMailContent.Cells(k).Value & " on " & xValDateRng
                xMsg = "Dear " & xValSendRng & vbCrLf & "Text : " & xMailContent.Cells(k).Value
    
                'AppleScript to send email
                AppleScript = "tell application ""Mail""" & vbCrLf
                AppleScript = AppleScript & "set newMessage to make new outgoing message with properties {subject:""" & xSubEmail & """, content:""" & xMsg & """, visible:true}" & vbCrLf
                AppleScript = AppleScript & "tell newMessage" & vbCrLf
                AppleScript = AppleScript & "make new to recipient at end of to recipients with properties {address:""" & xValSendRng & """}" & vbCrLf
                AppleScript = AppleScript & "send" & vbCrLf
                AppleScript = AppleScript & "end tell" & vbCrLf
                AppleScript = AppleScript & "end tell"
    
                'Run AppleScript from VBA
                MacScript (AppleScript)
            End If
        Next
    End Sub
    

    Regards
    ExcelDemy

  • Hello ER,

    We are glad to hear that our article was helpful to you. Thanks for your appreciation. Keep learning Excel.

    Regards
    ExcelDemy

  • Hello Jan,

    You need to scale the image to show the borders.
    You can use the following updated code to do so.
    Here, I used 0.9,to scale 90% of the cell’s width and height.
    Next, used LockAspectRatio to maintain the aspect ratio of the pictures.
    Then, Adjusted the alignment using Left and Top, it will center the picture within the cell after resizing.

    Sub InsertMultiplePictures()
        Dim Pictures() As Variant
        Dim PictureFormat As String
        Dim PicRng As Range
        Dim PicShape As Shape
        Dim ScaleWidth As Single
        Dim ScaleHeight As Single
    
        ' Define scale factors (90% of the cell size)
        ScaleWidth = 0.9
        ScaleHeight = 0.9
    
        On Error Resume Next
        Pictures = Application.GetOpenFilename(PictureFormat, MultiSelect:=True)
        PicColIndex = Application.ActiveCell.Column
    
        If IsArray(Pictures) Then
            PicRowIndex = Application.ActiveCell.Row
            For lLoop = LBound(Pictures) To UBound(Pictures)
                Set PicRng = Cells(PicRowIndex, PicColIndex)
                Set PicShape = ActiveSheet.Shapes.AddPicture(Pictures(lLoop), msoFalse, msoCTrue, PicRng.Left, PicRng.Top, PicRng.Width, PicRng.Height)
                ' Scale the picture size
                With PicShape
                    .LockAspectRatio = msoTrue
                    .Width = PicRng.Width * ScaleWidth
                    .Height = PicRng.Height * ScaleHeight
                    ' Center the picture in the cell
                    .Left = PicRng.Left + (PicRng.Width - .Width) / 2
                    .Top = PicRng.Top + (PicRng.Height - .Height) / 2
                End With
                PicRowIndex = PicRowIndex + 1
            Next
        End If
    End Sub
    

    Regards
    ExcelDemy

  • Hello Alami,

    Yes. you need to select the cell in the InputBox every time you want to clear the cells.
    But if you want to avoid using InputBox, I’m giving you two different code to do so.

    Mentioned the range then clear cells:

    Sub Clear_Range()
        Sheets("Sheet1").Range("A1:B10").Clear
    End Sub
    

    Select the cells then run the VBA code:

    Sub Clear_from_Selection()
        Selection.ClearContents
    End Sub
    

    Regards
    ExcelDemy

  • Hello A.Nirmala Rani,

    You can the following formula for the volume of a cylindrical segment:
    Mesaurements
    Where:
    V is the volume in liters,
    L is the length of the cylinder in meters,
    R is the radius of the cylinder in meters,
    h is the height of the liquid level in meters.

    Given the specific dimensions:
    L=5.0 meters (500 cm),
    R=1.0 meter (100 cm),
    h varies from 0.01 meters (1 cm) to 2.0 meters (200 cm)

    This formula calculates the volume of the liquid based on the height from the base up to the liquid level within a horizontal cylindrical tank. To use this formula, ensure to convert all measurements (radius, length, and height) to meters before applying them in the calculation.

    At 1 cm height: Approximately 9.41 liters
    At 2 cm height: Approximately 26.59 liters
    At 3 cm height: Approximately 48.77 liters
    At 4 cm height: Approximately 74.97 liters
    At 5 cm height: Approximately 104.62 liters
    At 10 cm height: Approximately 293.63 liters
    ———————————————————
    To see the full list of calculated volumes for each centimeter increment from 1 cm to 100 cm for the horizontal cylindrical tank, Download the Excel File.
    List of Calculated Volumes.xlsx

    Regards
    ExcelDemy

  • Dear Curt,

    It’s glad to hear that our article solved your issue. You are most welcome.

    Regards
    ExcelDemy

  • Hello Kevin,

    Here the needle is pointing at 45 but as we kept the number inside the pie chart may seem 55 but actual point is 45. For your better understanding I am attaching another article for the clear view. Sorry for the confusion.
    Please read this article from step 6: How to Create a Gauge Chart in Excel (With Easy Steps)
    You can watch these two images to clear the confusion.

    Speedometer Speedometer

    Regards
    ExcelDemy

  • Hello Harry Ingram,

    You can use this formula to extract only the numbers, including the decimal point.
    =TEXTJOIN(“”, TRUE, IFERROR(IF(ISNUMBER(SEARCH(MID(B5, ROW(INDIRECT(“1:” & LEN(B5))), 1), {“0″,”1″,”2″,”3″,”4″,”5″,”6″,”7″,”8″,”9″,”.”})), MID(B5, ROW(INDIRECT(“1:” & LEN(B5))), 1), “”), “”))

    Feel free to download the Excel file from the link below, you’ll find examples of the formula.
    Excel file: Extract Decimal Point Numbers

    Regards,
    ExcelDemy

  • Hello Paresh Kanti Paul,

    This article includes two dynamic ways for currency conversion.
    Real Time Currency Converter in Excel

    Regards
    ExcelDemy

  • Hello Martin,

    We are glad to hear that you found this article useful! Including a real-life example in tutorials can indeed make the steps more relatable and easier to understand. Applying these models to specific scenarios like maximizing profit by determining the production units for products A and B is a great way to leverage linear programming. We will include this in our next update.

    Regards
    ExcelDemy

  • Hello Karunesh Pandey,

    As calibration details varies with lab type we can provide you the criteria. You can fill out your information and edit the list.

    Calibration details

    Equipment Name Serial Number Manufacturer Model Calibration Frequency Last Calibration Date Next Due Date Technician Initials Comments
    pH Meter 12345 ABC Inc. Model X Monthly 3/15/2024 4/15/2024 AB
    Balance 67890 XYZ Corp. Model Y Monthly 3/20/2024 4/20/2024 CD
    Spectrophotometer 13579 DEF Ltd. Model Z Monthly 3/10/2024 4/10/2024 EF
    Pipettes (10-100µl) 24680 GHI Co. Model A Monthly 3/25/2024 4/25/2024 GH

    Regards
    ExcelDemy

  • Hello Gary Ward,

    Thanks for your valuable suggestion we will include this in our article.

    Regards
    ExcelDemy

  • Hello Liz,

    You can avoid the absolute reference ($ sign). Here absolute reference is used so that it can avoid error if anyone copy the formula in another cell.

    Regards
    ExcelDemy

  • Hello Alphonse,

    We are glad to hear from you again! Don’t worry about missed message, technical glitches happen to the best of us. We are glad to hear that the code for counting Mondays worked well for you. Thank you so much for expressing your gratitude—it’s always means a lot to us to know when something was helpful. You are most welcome and cheers to you too.

    Regards
    ExcelDemy

  • Hello Cynthia Satterwhite,

    Neither any problem nor any solution are given. These dataset are given to practice by yourself.

    Regards
    ExcelDemy

  • Hello Nilanjan,

    Excel for Mac doesn’t support the WorksheetFunction.WebService method due to differences in how Excel for Mac interacts with web services compared to Excel for Windows. In Mac, you need to directly access Google Translate’s API using HTTP requests or using a different method provided by Google Translate.

    Function TranslateText(text_str As String, src_lang As String, trgt_lang As String) As String
        Dim url As String
        Dim xmlhttp As Object
        Dim response As String
        Dim json As Object
        
        ' Construct the URL for Google Translate API
        url = "https://translation.googleapis.com/language/translate/v2?key=YOUR_API_KEY&q=" & _
                VBA.URLEncode(text_str) & "&source=" & src_lang & "&target=" & trgt_lang
    
        ' Send HTTP request to Google Translate API
        Set xmlhttp = CreateObject("MSXML2.XMLHTTP")
        xmlhttp.Open "GET", url, False
        xmlhttp.send
        
        ' Parse the JSON response
        response = xmlhttp.responseText
        Set json = JsonConverter.ParseJson(response)
        
        ' Extract and return the translated text
        TranslateText = json("data")("translations")(1)("translatedText")
    End Function
    

    Replace “YOUR_API_KEY” with your actual Google Cloud Platform API key.
    Remember to enable the “Microsoft XML, v6.0” reference in the VBA editor (under Tools > References) to use CreateObject(“MSXML2.XMLHTTP”) for making HTTP requests.

    Regards
    ExcelDemy

  • Hello Umang,

    Here are some articles from where you can download dataset of different types to practice your skills.
    Excel Sample Data (Free Download 13 Sample Datasets)
    Excel Data for Analysis (Free Download 11 Suitable Datasets)
    Excel Data for Practice Free Download

    Regards
    ExcelDemy

  • Hello Sameul Smith,

    You can follow any of the methods of your choice to make your list. If you face any problem regarding it you can share your list with us. If you want to upload any image or Excel file you can post it on our ExcelDemy Forum.

    Regards
    ExcelDemy

  • Hello Fredrick Aringo,

    You must use the last line to do AutoFilter based on criteria.

    ActiveSheet.Range(“A1:E14”).AutoFilter field:=2, Criteria1:=CatSites
    

    Please avoid the first line. We updated our code.

    Regards
    ExcelDemy

  • Dear Bharath L,

    You are most welcome. We are glad that our solution worked for you.

    Regards
    ExcelDemy

  • Hello,

    These datasets are given to use it for practice purpose. Currently we don’t have any solution of the task. But if you want you can send your completed task, we will review it for you.

    Regards
    ExcelDemy

  • Hello NadineB,

    You are most welcome. Thanks a lot for your appreciation.

    Regards
    ExcelDemy

  • Hello Valen,

    Can you mention the URL, please? In our site all URL’s of this article are working perfectly.

    Regards
    ExcelDemy

  • Hello Dianne Waginauru,

    You are most welcome and thanks for your appreciation. All the very best for you project management journey.

    Regards
    ExcelDemy

  • Hello Gwenn,

    Thanks for your suggestion. We deeply appreciate the solution provided in the comments. Thank you for your helpful contribution!

    Regards
    ExcelDemy

  • Hello Ameer Ahmed,

    We don’t have any dataset you asked for and your question is not clear enough. Our datasets are given in the article.

    Regards
    ExcelDemy

  • Hello Gaurav,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Joellah,

    Thanks for your appreciation, it means a lot to us. We are trying our best to provide Excellent articles. Keep reading to boost your knowledge.

    Regards
    ExcelDemy

  • Hello Leonardo Lagos,

    You can use the HYPERLINK function in Excel 360 online version.
    Insert the following formula in your formula bar: =HYPERLINK(“#’SheetName’!A1”, “Link Text”)

    But unfortunately, you can’t directly use the context menu to add a hyperlink to another sheet in Excel Online. You’ll need to use the formula approach described above.

    Regards
    ExcelDemy

  • Hello Shaul Bel,

    Thanks for your appreciation. You’re welcome and I’m really glad to hear that the SUBTOTAL formula worked well for you in achieving the desired results. If you have any more questions or need further assistance with formulas or anything else, feel free to ask!

    Regards
    ExcelDemy

  • Hello Michelle G,

    Thank you for reaching out to us. We request your attention to the above article to get your desired template on bonds purchased at a discount using the effective interest rate method.

    Your requested update is incorporated into our template. Please refer to the sheet named ‘Effective Interest (Discount)’ for the template on bonds purchased at a discount using the effective interest rate method. Click on the three dots (…) if you don’t find the template in your downloaded file.

    bond purchase sheet

    Regards
    ExcelDemy

  • Hello Martin,

    Excel for Mac does not offer right-clicking option like Excel for Windows.
    You can double click on the macro button or you can try the control click.
    A common workaround is to delete the existing button and create a new one, typing the correct text when you first insert it. While this might seem inefficient but you can “edit” the button text.

    Regards
    ExcelDemy

  • Hello ScubaCamper,

    Thanks for your appreciation. You are getting the error with asterisk because your formula attempts to multiply by 1 (*1) directly within the MID function’s parameters, that is not correct. You need to apply the multiplication outside of the MID function but within the array operation.

    Please try this formula:
    =TEXTJOIN(“”, TRUE, IFERROR(MID(B5, ROW(INDIRECT(“1:” & LEN(B5))), 1)* 1, “”))

    In your formula style the formula would be: textjoin(“”,true,iferror((mid([cellref],row(indirect(“1:”&LEN([cellref]))),1)*1),””))

    The purpose of multiplying by 1 (*1) in Excel formulas often is to convert text numbers to actual numeric values.

    Regards
    ExcelDemy

  • Hello Dan,

    You can use this VBA code to delete sheet named “BETA”, from multiple Excel files which are in same folder.

    Sub DeleteSheetFromMultipleWorkbooks()
        Dim wsPath As String
        Dim wsName As String
        Dim wb As Workbook
        Dim filename As String
        Dim sheetFound As Boolean
        
        ' Folder path containing the Excel files (end with a backslash)
        wsPath = "C:\YourFolderPathHere\"
        
        ' Name of the worksheet you want to delete
        wsName = "BETA"
        
        ' File extension to look for (xlsx for modern Excel files, xls for older ones)
        filename = Dir(wsPath & "*.xlsx")
        
        Application.ScreenUpdating = False
        Application.DisplayAlerts = False
        
        While filename <> ""
            Set wb = Workbooks.Open(wsPath & filename)
            sheetFound = False
            
            On Error Resume Next
            sheetFound = Not wb.Sheets(wsName) Is Nothing
            On Error GoTo 0
            
            If sheetFound Then
                Application.DisplayAlerts = False
                wb.Sheets(wsName).Delete
                Application.DisplayAlerts = True
                wb.Save
            End If
       
            wb.Close SaveChanges:=False
            filename = Dir() ' Get next file
        Wend
        
        Application.ScreenUpdating = True
        Application.DisplayAlerts = True
        
        MsgBox "BETA Sheet is Removed"
    End Sub
    

    Regards
    ExcelDemy

  • Hello Michelle,

    You are most welcome. Your appreciation means a lot to us.

    Regards
    ExcelDemy

  • Hello Terry Wayne Sutfin,

    Thanks for your appreciation, it means a lot to us.

    Regards
    ExcelDemy

  • Hello Margit,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Jitendra Sahu,

    Thanks for your kind words. Our goal is to make Excel easy for everyone.

    Regards
    ExcelDemy

  • Hello Melissa,

    We are glad that our article solved your problem. You are most welcome. Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Robert,

    You are most welcome. Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Ayokanmi,

    Thanks for your appreciation. You are most welcome. Our paid courses are in Udemy not in WordPress. But we have 7500++ free tutorials and 340+ YouTube videos. You can explore these learning materials for free.

    Regards
    ExcelDemy

  • Hello Feven,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Brent Hamilton,

    Thank you for your feedback. We used Microsoft 365 at work. We apologize for any confusion caused. The reason the “Show Changes” feature only becomes available after saving the file on OneDrive for real-time collaboration and tracking of changes. If you save it on OneDrive, it allows Excel to track changes made by different users and enables the “Show Changes” feature to display those revisions. This integration with OneDrive enhances collaboration and ensures that users can effectively manage changes made to shared documents.

    Regards
    ExcelDemy

  • Hello David Rascati,

    You are most welcome. If you want you can share your code here so that we can debug it to find out the reason.

    Regards
    ExcelDemy

  • Hello Mervyn,

    Thanks for visiting our blog and sharing your questions. You wanted to clarify the difference between a Table and a Dynamic Table.

    Table and Dynamic table may look similar but they are not same.
    In the context of the article,
    Regular Table – is created manually by the user within Excel’s interface.
    Dynamic Table – is generated automatically using VBA code.

    When data is turned into a table, Excel automatically adds functions like sorting, filtering, and structured referencing. These tables are dynamic and adjust automatically when the data changes.

    But a Dynamic Table in the article’s context likely refers to a table created dynamically using VBA code from a range. It is able to automatically manage specific criteria or changes.

    Regards
    ExcelDemy

  • Hello Phil Hall,

    If you want the Excel Workbook of this article you will get it from Download Practice Workbook section.

    If you want the get the advanced exercises from “Get FREE Advanced Excel Exercises with Solutions!” button please fill your information correctly in the form. Next, you will get the exercise list in your given email. For your concern I tried it again it’s working perfectly.

    Exercise mail

    Regards
    ExcelDemy

  • Hello Vijay,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear RB,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear SKM,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Sudarshan Dhuru,

    You are most welcome. Thanks for your appreciation it means a lot to us.

    Regards
    ExcelDemy

  • Dear Xyand,

    You are most welcome. Thanks for appreciation. We updated the image of Method 6.

    Regards
    ExcelDemy

  • Hello Saeed Anwar,

    You can download the Cheat Sheet free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Hello Minzameera,

    Hope you are doing well. Here we calculated the overtime based on your criteria. We assumed that this time spans are for one person. If these are for different person you can modify the formula.

    Formula ta calculate working hours: =(IF(B2

    Formula

    Formula to calculate the total working hours: =C2+C3

    formula 2

    Formula to calculate the overtime, here we assumed the working hours are 8: =IF(D2>B6,D2-B6,”No Overtime”)

    overtime

    Regards
    ExcelDemy

  • Hi Paulinus Friday,

    You are most welcome. Data Files are available in the Excel Practice file section.

    Regards
    ExcelDemy

  • Hello ابو معاذ,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Dwbi,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Rao,

    We will try to upload it in our up coming videos.

    Regards
    ExcelDemy

  • Hello Jessica H,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Jennifer,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Federico Cofederi,

    To send Email without pressing “Send” you can use .Send property in your code instead of .Display.

    Option Explicit
    Sub Send_Email_Condition()
        Dim xSheet As Worksheet
        Dim mAddress As String, mSubject As String, eName As String
        Dim eRow As Long, x As Long
        Set xSheet = ThisWorkbook.Sheets("Conditions")
        With xSheet
            eRow = .Cells(.Rows.Count, 5).End(xlUp).Row
            For x = 5 To eRow
                If .Cells(x, 4) >= 1 And .Cells(x, 5) = "Obama" Then
                    mAddress = .Cells(x, 3)
                    mSubject = "Request For Payment"
                    eName = .Cells(x, 2)
                    Call Send_Email_With_Multiple_Condition(mAddress, mSubject, eName)
                End If
            Next x
        End With
    End Sub
    Sub Send_Email_With_Multiple_Condition(mAddress As String, mSubject As String, eName As String)
        Dim pApp As Object
        Dim pMail As Object
        Set pApp = CreateObject("Outlook.Application")
        Set pMail = pApp.CreateItem(0)
        With pMail
            .To = mAddress
            .CC = ""
            .BCC = ""
            .Subject = mSubject
            .Body = "Mr./Mrs. " & eName & ", Please pay the due amount within the next week." _
            & vbNewLine & "The exact amount is attached with this email."
            .Attachments.Add ActiveWorkbook.FullName 'Send The File via Email
            .Send 
        End With
        Set pMail = Nothing
        Set pApp = Nothing
    End Sub
    

    Regards
    ExcelDemy

  • Hello Obinna,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Prakash,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Salomé Magerstein,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Kristi,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Muhammad Ismail Jumarang,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Lory,

    You can use the following formula: =IFERROR(INDEX(‘Round 1′!$B$3:$AJ$25,MATCH(A5,’Round 1’!$B$3:$B$25, 0),34),””)
    It will leave a cell blank if no matches are found.

    Regards
    ExcelDemy

  • Hello Kndn,

    The Measuring unit of the result is “Mile”.

  • Hello,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Icarus Builders,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Vini,

    Updated the code spilt data into multiple Excel file.

    Sub Split_Data_Multiple_Files()
        Dim L As Long
        Dim DS As Worksheet
        Dim VCL As Integer
        Dim XCL As Long
        Dim MARY As Variant
        Dim title As String
        Dim titlerow As Integer
        Dim newWorkbook As Workbook
        Dim newSheet As Worksheet
        Dim filePath As String
        
        Application.ScreenUpdating = False
        
        VCL = Application.InputBox(prompt:="Which column would you like to filter by?", title:="Filter column", Type:=1)
        Set DS = ActiveSheet
        L = DS.Cells(DS.Rows.Count, VCL).End(xlUp).Row
        title = "A1"
        titlerow = DS.Range(title).Cells(1).Row
        XCL = DS.Columns.Count
        DS.Cells(3, XCL) = "Unique"
        
        For X = 2 To L
            On Error Resume Next
            If DS.Cells(X, VCL) <> "" And Application.WorksheetFunction.Match(DS.Cells(X, VCL), DS.Columns(XCL), 0) = 0 Then
                DS.Cells(DS.Rows.Count, XCL).End(xlUp).Offset(1) = DS.Cells(X, VCL)
            End If
        Next
        
        MARY = Application.WorksheetFunction.Transpose(DS.Columns(XCL).SpecialCells(xlCellTypeConstants))
        DS.Columns(XCL).Clear
        
        For X = 2 To UBound(MARY)
            DS.Range(title).AutoFilter field:=VCL, Criteria1:=MARY(X) & ""
            Set New_Workbook = Workbooks.Add
            Set New_Sheet = newWorkbook.Sheets(1)
            DS.Range("A" & titlerow & ":A" & L).EntireRow.Copy New_Sheet.Range("A4")
            DS.AutoFilterMode = False
            New_Sheet.Columns.AutoFit
            filePath = ThisWorkbook.Path & "\" & MARY(X) & ".xlsx"
            New_Workbook.SaveAs filePath
            New_Workbook.Close False
        Next
        
        DS.Activate
        Application.ScreenUpdating = True
    End Sub
    

    Regards
    ExcelDemy

  • Hello Syed Mohisn Ahmed,

    Updated the code in the marked section. Where I replaced “Rupees” text from condition.

    Updated Code

    You can use the following code.

    Function word(SNum As String)
    'Declare the Variables
    Dim zDPInt As Integer
    Dim zArrPlace As Variant
    Dim zRStr_Paisas As String
    Dim zNumStr As String
    Dim zP As Integer
    Dim zTemp As String
    Dim zStrTemp As String
    Dim zRStr As String
    Dim zBp As Integer
    zArrPlace = Array("", "", " Thousand ", " Lacs ", " Crores ", " Trillion ", "", "", "", "")
    On Error Resume Next
    If SNum = "" Then
      word = ""
      Exit Function
    End If
    zNumStr = Trim(Str(SNum))
    If zNumStr = "" Then
      word = ""
      Exit Function
    End If
     
    zRStr = ""
    zBp = 0
    If (zNumStr > 999999999.99) Then
        word = "Digit excced Maximum limit"
        Exit Function
    End If
    zDPInt = InStr(zNumStr, ".")
    If zDPInt > 0 Then
        If (Len(zNumStr) - zDPInt) = 1 Then
           zRStr_Paisas = word_GetT(Left(Mid(zNumStr, zDPInt + 1) & "0", 2))
        ElseIf (Len(xNumStr) - xDPInt) > 1 Then
           zRStr_Paisas = word_GetT(Left(Mid(zNumStr, zDPInt + 1), 2))
        End If
            zNumStr = Trim(Left(zNumStr, zDPInt - 1))
        End If
        zP = 1
        Do While zNumStr <> ""
            If (zP >= 2) Then
                zTemp = Right(zNumStr, 2)
            Else
                If (Len(zNumStr) = 2) Then
                    zTemp = Right(zNumStr, 2)
                ElseIf (Len(zNumStr) = 1) Then
                    zTemp = Right(zNumStr, 1)
                Else
                    zTemp = Right(zNumStr, 3)
                End If
            End If
            zStrTemp = ""
            If Val(zTemp) > 99 Then
                zStrTemp = word_GetH(Right(zTemp, 3), zBp)
                If Right(Trim(xStrTemp), 3) <> "Lac" Then
                zBp = zBp + 1
                End If
            ElseIf Val(zTemp) <= 99 And Val(zTemp) > 9 Then
                zStrTemp = word_GetT(Right(zTemp, 2))
            ElseIf Val(zTemp) < 10 Then
                zStrTemp = word_GetD(Right(zTemp, 2))
            End If
            If zStrTemp <> "" Then
                zRStr = zStrTemp & zArrPlace(zP) & zRStr
            End If
            If zP = 2 Then
                If Len(zNumStr) = 1 Then
                    zNumStr = ""
                Else
                    zNumStr = Left(zNumStr, Len(zNumStr) - 2)
                End If
           ElseIf zP = 3 Then
                If Len(zNumStr) >= 3 Then
                     zNumStr = Left(zNumStr, Len(zNumStr) - 2)
                Else
                    zNumStr = ""
                End If
            ElseIf zP = 4 Then
              zNumStr = ""
        Else
            If Len(zNumStr) <= 2 Then
            zNumStr = ""
        Else
            zNumStr = Left(zNumStr, Len(zNumStr) - 3)
            End If
        End If
            zP = zP + 1
    Loop
        If zRStr = "" Then
           zRStr = "No Rupees"
        Else
           zRStr = " Rupees " & zRStr
        End If
        If zRStr_Paisas <> "" Then
           zRStr_Paisas = " and " & zRStr_Paisas & " Paisas"
        End If
        word = zRStr & zRStr_Paisas & " Only"
        End Function
    Function word_GetH(zStrH As String, zBp As Integer)
    Dim zRStr As String
    If Val(zStrH) < 1 Then
        word_GetH = ""
        Exit Function
        'Converts a Number from 100 to 999 into Word
    Else
       zStrH = Right("000" & zStrH, 3)
       If Mid(zStrH, 1, 1) <> "0" Then
            If (zBp > 0) Then
             zRStr = word_GetD(Mid(zStrH, 1, 1)) & " Lac "
            Else
             zRStr = word_GetD(Mid(zStrH, 1, 1)) & " Hundred "
            End If
        End If
        If Mid(zStrH, 2, 1) <> "0" Then
            zRStr = zRStr & word_GetT(Mid(zStrH, 2))
        Else
            zRStr = zRStr & word_GetD(Mid(zStrH, 3))
        End If
    End If
        word_GetH = zRStr
    End Function
    Function word_GetT(zTStr As String)
        Dim zTArr1 As Variant
        Dim zTArr2 As Variant
        Dim zRStr As String
        'Converts a Number from 10 to 19 into Word
        
        zTArr1 = Array("Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen", "Eighteen", "Nineteen")
        'Converts a Number from 20 to 99 into Word
        
        zTArr2 = Array("", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety")
        Result = ""
        If Val(Left(zTStr, 1)) = 1 Then
            zRStr = zTArr1(Val(Mid(zTStr, 2, 1)))
        Else
            If Val(Left(zTStr, 1)) > 0 Then
                zRStr = zTArr2(Val(Left(zTStr, 1)) - 1)
            End If
            zRStr = zRStr & word_GetD(Right(zTStr, 1))
        End If
          word_GetT = zRStr
    End Function
    Function word_GetD(zDStr As String)
    Dim zArr_1() As Variant
    'Converts a Number from 1 to 9 into Word
    
        zArr_1 = Array(" One", " Two", " Three", " Four", " Five", " Six", " Seven", " Eight", " Nine", "")
        If Val(zDStr) > 0 Then
            word_GetD = zArr_1(Val(zDStr) - 1)
        Else
            word_GetD = ""
        End If
    End Function
    

    Regards
    ExcelDemy

  • Hello,

    Thanks for reaching out to us.

    First, remember that rules and instructions for interest calculation after garnishment order vary among countries and states. Next, post-judgment interest accrues only on the unpaid balance of the judgment.

    However, to calculate interest if the judgment was turned into a garnishment, you can follow the steps below.
    1. Take your judgment amount and deduct the amount of garnishment.
    2. Multiply it by your post-judgment rate (%).
    3. Take the total and divide it by 365 (the number of days in a year).
    4. With the amount of post-judgment interest per day (in step 3), multiply it by the number of days from your date of judgment to the date you file your execution.

    Simply, use the following formula to calculate interest if the judgment was turned into a garnishment:
    Interest after Garnishment = (Judgment Amount – Garnished Amount) ( Interest Rate / 365) Interim Days

    Thanks again for your thoughtful comments, especially the points you made about garnishment. It adds valuable perspective to our discussion.

    Regards,
    Abdullah Al Masud,
    ExcelDemy Team

  • Hello Muhammad Asif,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Joseph Jabatie,

    You are welcome. You can get the notes or Excel workbook from the Download section.

    Regards
    ExcelDemy

  • Hello Mohammed.

    Thanks for your appreciation. Our content is completely free for our users learning but don’t use it for your business purpose without proper agreement.

    Regards
    ExcelDemy

  • Hello Mohamed Sufi,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Jude Ranby,

    Here, the first methods Linking Existing Table on Another Sheet in Excel is duplicating the source table.

    Here, I’m attaching a video for understanding.

    Regards
    ExcelDemy

  • Hello Smn,

    Formula of Exercise -5: =AND(G102=”Astro”,OR(C102=”Laptop”,C102=”Mobile Phone”)) is used to check multiple conditions using the AND and OR logical functions.

    Here,

    G102=”Astro”: It checks the value of G102 is equal to “Astro” or not.

    OR(C102=”Laptop”,C102=”Mobile Phone”): It checks the value of cell C102 is equal to either “Laptop” or “Mobile Phone”. Here, the OR function will return TRUE if any of the conditions are TRUE.

    AND(G102=”Astro”, OR(C102=”Laptop”, C102=”Mobile Phone”)): Here, the AND function combines the two conditions. It will return TRUE only if both/two conditions are TRUE.

    Exercise-5 solution

    Regards
    ExcelDemy

  • Hello M-curious,

    To do a conditional formatting follow the steps of method 1. Instead of using custom option from format cells, you can use the Alignment options.
    Go to Format cells dialog box then from Alignment select any select any Alignments of your choice.

    Alignments

    Regards
    ExcelDemy

  • Hello Dear,

    You can download the Cheat Sheet free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Anthonia Aniekule,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Bob Leslie,

    You will get Break Even Analysis Template template in this article.

    Regards
    ExcelDemy

  • Hello Oscar,

    Glad to hear that our blogs are helping professionals.

    Regards
    ExcelDemy

  • Hello IDD,

    If you want real-time synchronization between the Excel file on your computer and Google Sheets, you can use the Google Drive desktop app.
    1. Download and install the Google Drive app on your computer.
    2. Sign in with the same Google account used to upload the Excel file.
    3. Copy or move the Excel file to the Google Drive folder on your computer.
    Open the Excel file from the Desktop App of Drive. Then, any changes made to the file on your computer will be automatically synced with Google Drive, and subsequently, with Google Sheets.

    Finally, open the google sheets from the Drive. You will get the updated Excel file.

    Regards
    ExcelDemy

  • Dear Tony

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Yasin,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear OppaPanda,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Thomas,

    Thanks for your appreciation. We are working on it.

    Regards
    ExcelDemy

  • Dear AKhtar Khilji,

    I hope this message finds you well too. Thank you very much for your kind words and your interest in using the training material from my blog for your nonprofit Excel training program. I’m thrilled to hear that you found the content helpful and that it will be used to empower the youth of marginalized communities in Pakistan.

    I’m more than happy to grant you permission to utilize the exercises from the blog for your educational initiative. Please feel free to mention “ExcelDemy” along with the web address to provide proper attribution. It’s wonderful to know that the material will be shared with the trainees to enhance their learning experience.

    If you have any specific requests or need further assistance with anything related to the training material, please don’t hesitate to reach out. I’m here to support your efforts in any way I can.

    Wishing you great success with your Excel training program and the empowerment of the youth in marginalized communities.

    Best regards,
    ExcelDemy

  • Hello Rahul,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello AJ,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Ankur Vaish,

    Thanks for your suggestions.

  • Hello Sam Arthur,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear John Summers,

    You are most welcome. Your appreciation means a lot to us to write such technical and informative article in future.

    Regards
    ExcelDemy

  • Hello Tiffany A Snyder,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Earlington Etienne,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Loni,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Jane Wanjiku,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Sandra Merlo,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Gallienus,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello John,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Margaret,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Akram Siddique,
    Here, in the formula : =WEEKDAY(B5,11)
    11 means – Numbers 1 (Monday) through 7 (Sunday). Here the weeks starts from Monday. So it will count the days of week from Monday and the integer value will be 1, Tuesday (2) and so on.

    day of weeks

    Regards
    ExcelDemy

  • Hello Noelle,

    To highlight the entire row, insert the following formula: =$C5 < TODAY()

    Formula

    In applies to select the rows
    Applies to

    Regards
    ExcelDemy

  • Dear Daniela Vognar,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Radu Pescaru,

    Sunteți foarte bineveniți.

    Regards
    ExcelDemy

  • Hello Patricia Pearson,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Ehia,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Chris,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Sirajudeen,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Patrick Opiola,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Mardell Daubney,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Dr.M. Veerendra Kumar,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Hamed,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello AJ,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Joedel,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Abdul Kader Osman,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Saiful Amin,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Abdrman,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Nick,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Gianluigi,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello JC,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello JC,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Andrii,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Syed Minhaj,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Peter,

    So kind of you.

    Regards
    ExcelDemy

  • Hello Nurit,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Ava,

    Thanks

  • Hello Tamiko,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Huongpt,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Brenda Gale Austin-Sanders,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Mario,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Amanz,

    We shared our ideas with you in your ExcelDemy Forum post.

  • Hello Adam Ingleton,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Ani,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Vijiaselvam Nayagam,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Mohammad,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Suzie,

    Glad to hear that our solution helped you.

    Regards
    ExcelDemy

  • Hello Romeo Nyi,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Minzitia Lawrence,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Juan,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Kagiso,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Azreim,

    You are most welcome.

    Regards
    ExcelDemy

  • Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Lee G,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Tanveer,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Mian Muhammad Saleem,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello JD,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Eduardo,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Sam,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Mongwongprue Marma,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Calin,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Adam,

    Thanks for your appreciation. You are most welcome.

    Regards
    ExcelDemy

  • Hello Ali,

    Thanks for your appreciation. You are most welcome.

    Regards
    ExcelDemy

  • Hello Dawood,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Eduardo,

    Kindly share your Excel File and images in ExcelDemy Forum.

    Regards
    ExcelDemy

  • Hello Daniel Woods,

    To make problem sharing easier we launched ExcelDemy Forum, so that you can upload Excel Files and images of your problem. You can share your workbook in ExcelDemy Forum our expert team will reach out to you.

    Regards
    ExcelDemy

  • Hello Daniel Woods,

    To make problem sharing easier we launched ExcelDemy Forum, so that you can upload Excel Files and images of your problem. You can share your workbook in ExcelDemy Forum our expert team will reach out to you.

    Regards
    ExcelDemy

  • Hello Abishek,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello David,

    Thanks for your valuable suggestions.

    Regards
    ExcelDemy

  • Hello Mike Longoria,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Z Thomas,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Andrija,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Mohammed,

    Kindly share the issues you are facing while using the Excel file in the comment box. In case you need to share images, Excel file, you also can post your problem in ExcelDemy Forum.

    Regards
    ExcelDemy

  • Hello Syifaa’ Mustafa,

    To get the Developer tab follow the steps mentioned in the article Display the Developer tab in Excel. Then you can use it to create Tooltip.

    Regards
    ExcelDemy

  • Hello Selam,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello DanJ,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Matt S,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Odedele Olufemi,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Joel,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Chanyalew,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Lynn,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Nasir Ahmed,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Anon,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Vickie Addo,

    We have given the answers of 100 questions in our Excel File, which is given in the Download Practice Workbook Section. As these questions are given to test your skills it won’t be helpful to check the answer immediately. A gif is given how you can test your skills at the end. Please download the Excel File and test you skills then see the answers.

    Regards
    ExcelDemy

  • Hello Venkatesh,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Alexandar P,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Naziom,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Viraltecho,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Joel,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Suhaili,

    You don’t need to worry about payment. If you want any read-to-use template kindly send your requirements using [email protected] email.

    Regards
    ExcelDemy

  • Dear Dave,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Komal Thakur,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Samia,

    In the Download Practice Workbook section, you will get the dataset used in the article.

    Regards
    ExcelDemy

  • Hello Nafez,

    You are most welcome and thanks for you invitation to visit Qatar.

    Regards
    ExcelDemy

  • Hello May,

    The “Developer Tab” option is missing in default Excel versions. You can enable it from Excel Options. By following this article Display the Developer Tab you can enable it easily.

    Regards
    ExcelDemy

  • Dear Laurie,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Sovereign,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Sagar,

    You will get the solutions in the Excel file, which is given in the Download Practice workbook Section.

    Regards
    ExcelDemy

  • Dear Anusha Uppuganti,

    You are most welcome. We are so glad that our article explanation helped you.

    Regards
    ExcelDemy

  • Dear PK,

    Thanks for your appreciation. You are most welcome.

    Regards
    ExcelDemy

  • Hello Tsegay Gebreselasie,

    Our aim is giving you the best Excel-related content like this.

    Regards
    ExcelDemy

  • Dear Mark,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Rolan,

    Thanks for your suggestion. Article is updated.

  • Hello Damien,

    From our Download Practice Workbook section, you will get the Excel file.

    If you face any difficulties after downloading the above file, follow this article to Enable Macros but Not Working

    Regards
    ExcelDemy

  • Hello Taiwo,

    All the solution are available in the Excel Practice file section.

    We used this formula to get discount amount: =F5*IF(D5<1,0.03,0.05)

    Comment reply

    Regards
    ExcelDemy

  • Hi viralTecho

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello James Ward,

    To run the code from Excel you can follow these steps:
    Developer tab >> Macros >> Select any Sub Procedure from the list

    Comment reply

    Regards
    ExcelDemy

  • Hello Hugh Richards,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Noe Albarran,

    You are most welcome.

    Regards
    ExcelDEmy

  • Dear Yuan,

    Thanks for the suggestions. The code is updated you can check it now.

    Regards
    ExcelDemy

  • Dear Amir

    You have to use either the combined formula or the vba code. Because converting number to words maintaing the place vaule is not possible by simple formula.

    Regards
    ExcelDemy

  • Dear Ian Fisher,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Viraltecho,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Viraltecho,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Roberto,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Aubrey

    You are most welcome. Your appreciation means a lot to us.

    Regards
    ExcelDemy

  • Dear Dilip Paunikar

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Soumendra

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Manwesh,

    You can state your problem in the comment section or in our ExcelDemy Forum.

    Regards
    ExcelDemy

  • Dear Ashab,

    We do have a YouTube channel named ExcelDemy

    Regards
    ExcelDemy

  • Dear Evangeline,

    Thanks for your appreciation. Our experienced writers write these questions after doing a complete research about the topic.

    Regards
    ExcelDemy

  • Dear Jason,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Ryan,

    Glad to hear that our article helped you.

    Regards
    ExcelDemy

  • Dear Endashaw Balcha,

    To know more about excel formula you can explore our Excel Formulas category. From here you will get practical use of different formulas in different fields.

    Regards
    ExcelDemy

  • Dear Raf,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Muhammad Amin,

    Good to hear that. To get more helpful contents explore our site.

    Regards
    ExcelDemy

  • Dear Jess,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Jimmy,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello y2mate,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear ytMp3,

    Thank you so much.

    Regards
    ExcelDemy

  • Dear Martin Carrion,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Dina,

    Thank you so much for your appreciation.

    Regards
    ExcelDemy

  • Dear Navini,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Gopi Sahu,

    Thanks for reaching out to us. You will get various types of WFM related articles here Excel Solver

    If you need solution of any specific topic kindly comment down below.

    Regards
    ExcelDemy

  • Dear Justice,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Merry,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Karen,

    You are most welcome.

    Regards
    ExcelDemy

  • Hi Putul ch. Borah,

    Yes, you can do it by following the mentioned steps.

  • Dear Tiago,

    You are most welcome.

    Regards
    ExcelDemy

  • Dera Ashok,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Foysal,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear kinyapreen,

    To get virtual lessons you can follow our youtube channel Youtube Channel

    Regards
    ExcelDemy

  • Hello BART,

    It is possible to add a VB line of code to run the selection change code only when you click the tab of the worksheet called “index.” To achieve this, you can use the Worksheet_Activate event in the code module of the “index” worksheet. Here’s the code.

    Private Sub Worksheet_Activate()
        Dim mVCount As Integer
        Dim mHCount As Integer
        Dim mVBreak As VPageBreak
        Dim mHBreak As HPageBreak
        Dim mNumPage As Integer
        
        mHCount = 1
        mVCount = 1
        
        If ActiveSheet.PageSetup.Order = xlDownThenOver Then
            mHCount = ActiveSheet.HPageBreaks.Count + 1
        Else
            mVCount = ActiveSheet.VPageBreaks.Count + 1
        End If
        
        mNumPage = 1
        
        For Each mVBreak In ActiveSheet.VPageBreaks
            If mVBreak.Location.Column > ActiveCell.Column Then Exit For
            mNumPage = mNumPage + mHCount
        Next
        
        For Each mHBreak In ActiveSheet.HPageBreaks
            If mHBreak.Location.Row > ActiveCell.Row Then Exit For
            mNumPage = mNumPage + mVCount
        Next
        
        ThisWorkbook.Worksheets("Worksheet 1").Range("I2").Value = "Page " & mNumPage & " of " & Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
        ThisWorkbook.Worksheets("Worksheet 3").Range("C5").Value = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
    End Sub
    

    Regards
    Alif Bin Hussain

  • Dear,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Bart,

    You are most welcome. Sure, you can inform us.

    Regards
    ExcelDemy

  • Dear Najeeburk,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Danny Van Straten,

    If you need any types of customized templates you may contact us through [email protected]
    We have a expert team to create any types of professional templates.

    Regards
    ExcelDemy

  • Hello Yaojm,

    Thanks for your suggestions. Here we focused on the comparison/difference of VLOOKUP and XLOOKUPp that’s why we didn’t improvised the use of VLOOKUP.

    Regards
    ExcelDemy

  • Hello Pankaj,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Charlotte,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Mustafa,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Abubakar,

    You are most welcome. We hope so you will be able to create an interim certificate template following these steps.

    Regards
    ExcelDemy

  • Dear B,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Akash,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Carl,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Dear,

    You can download the Cheat Sheet free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Macel Williams,

    To customize any templates you can contact with us via this mail problem @exceldemy.com

    Regards
    ExcelDemy

  • Dear Macel Williams,

    To customize any templates you can contact with us via this mail problem @exceldemy.com

    Regards
    ExcelDemy

  • Dear Qasim,

    Thanks for your suggestions we have updated our Exercise 3 you can check it now.

    Regards
    ExcelDemy

  • Dear Kenny H,

    This Email address is valid but if you face any problem you can post your problem in our ExcelDemy Forum.

    Regards
    ExcelDemy

  • Dear Nikhil Pandey,

    You will get all the solutions in the workbook’s Solution sheet. Here I’m giving you the query answer for your understanding.

    The Formula is : =WEEKDAY(B5,11)

    Get-Weekday

    Regards
    ExcelDemy

  • Dear Nikhil Pandey,

    You will get the solution sheet in the Download Practice Files section. Download the workbook there in Solution sheet you will get all the solutions. You you can get the workbook from this link Solution Sheet

    Regards
    ExcelDemy

  • Dear Aiden,

    Yes you can do that.

    Regards
    ExcelDemy

  • Dear Macel,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Marc,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Kim,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Prakash Tulsiani,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Kay,

    To get a customized templates you can contact with us through this Email: [email protected]

    Regards
    ExcelDemy

  • Hello Dear,

    You can download the Excel and PDF files free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Nadew w/yesus,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Dr,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Adil Ahmed,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Macel Williams,

    You are most welcome.

    Regards
    ExcelDemy

  • Hello Dear,

    You can download the Cheat Sheet free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Isaac,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear MADI,
    Thank you for following our article.
    To split into sheets based on certain row conditions, we have to enter an IF condition that checks if the row is of a certain colour. Here, I have added the code to do this.

    Sub SplitSheetByGreenColor()
        Dim Rng As Range
        Dim xRow As Range
        Dim SplitRow As Integer
        Dim xSheet As Worksheet
        Dim i As Integer
        Dim resizeCount As Integer
        
        On Error Resume Next
        xTitleId = "ExcelSplit"
        Set Rng = Application.Selection
        Set Rng = Application.InputBox("Range", xTitleId, Rng.Address, Type:=8)
        SplitRow = Application.InputBox("Row Number Split", xTitleId, 5, Type:=1)
        Set xSheet = Rng.Parent
        Set xRow = Rng.Rows(1)
        Application.ScreenUpdating = False
        
        For i = 1 To Rng.Rows.Count Step SplitRow
            resizeCount = SplitRow
            If (Rng.Rows.Count - xRow.Row + 1) < SplitRow Then resizeCount = Rng.Rows.Count - xRow.Row + 1
            
            If xRow.Cells(1).Interior.Color = RGB(0, 255, 0) Then
                xRow.Resize(resizeCount).Copy
                Application.Worksheets.Add after:=Application.Worksheets(Application.Worksheets.Count)
                Application.ActiveSheet.Range("A1").PasteSpecial
            End If
            
            For j = 2 To Worksheets.Count
            Worksheets(j).Name = "Green" & j - 1
            Next j
    
            Set xRow = xRow.Offset(SplitRow)
        Next
        
        Application.CutCopyMode = False
        Application.ScreenUpdating = True
    End Sub

    This code checks if the interior colour of the first cell in each row of the selected range is Green(RGB(0,255,0)). The entire row is copied and pasted into a new sheet if rows meet the condition. You can alter this colour condition according to your need.

    Regards
    Priti

  • Dear Sara,

    You will find the solutions in the Excel file which is given in Download Practice Workbook section.

    Regards
    ExcelDemy

  • Dear Sakshi,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Md. Morshed Alam,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Alex,

    Thanks for your feedback.

    Regards
    Exceldemy

  • Dear Paresh Kanti Paul,

    We are glad to hear that.

    Regards
    ExcelDemy

  • Hello Dear,

    You can download the Excel and PDF files free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Sushil,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Duncan R Walk,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Bolajoko Olufemi,

    You will get all resources related to Data Analysis here All About Data Analysis. We are planning to launch courses as soon as possible.

    Regards
    ExcelDemy

  • Dear Ronald,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Ronhat Minmin,

    If you want to get the Excel File, you can download it from Download Practice Workbook

    Regards
    ExcelDemy

  • Dear Ebrahim Ahmadi,

    You are welcome.

    Regards
    ExcelDemy

  • Hello Dear,

    You can download the Excel and PDF files free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Lin Giralt,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Khin Soe,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Tha’ir,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Mohamad,

    Thanks for your appreciation

    Regards
    ExcelDemy

  • Dear Minhajul,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Sandeep Bhattacharjee,

    You are most welcome and thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello Sujay Jain,

    You can download the Excel and PDF files free of cost just by providing your valid email address. To get the files go to the Top 100 MCQ of Excel section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear S Roy,

    You are most welcome.

    Regards
    ExcelDemy

  • Hi Kazem,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Lana,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Seamus Madden,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hi Ndonwi,

    Thanks

  • Dera Merc,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Joanna,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Richard,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Andrei,

    These functions are available in WPS office.

    Regards
    ExcelDemy

  • Dear Kapil,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Tommy Fuifui,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Excel Nob,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Car,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Jamie,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Anitelleth,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Anitelleth,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Kay,

    You are welcome.

    Regards
    ExcelDemy

  • Dear Pirooz Rahimi,

    You are most welcome and thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Abel,

    Thanks for your appreciation. You are most welcome.

    Regards
    ExcelDemy

  • Dear Kh Paydar,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Joris,

    You are most welcome. We are glad to hear that.

    Regards
    ExcelDemy

  • Dear Raja,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Kapil,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Polepeddi Sasidhar,

    We are glad to hear that.

    Regards
    ExcelDemy

  • Hello Silpa,

    You can download the Excel and PDF files free of cost just by providing your valid email address. To get the files go to the “Download Excel Formulas Cheat Sheet PDF & Excel Files” section of this post and enter your email address. Then check your email immediately after to get the download links.

    Best Regards
    ExcelDemy

  • Dear Jidith Savidge,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Ajij Nadaf,

    We will love to give you suggestions. kindly share your problem.

    Regards
    ExcelDemy

  • Good day, Daniel,

    The issue you’re having might be because your workbook’s data range differs from the data range specified in our code.

    Change the data range according to your worksheet.

    This might be the solution to your issue. I’d appreciate it if you could send me the worksheet you’re working on so that I can better understand your issue and give you an exact solution.

    Regards
    Sakibul Hasan Nahid | ExcelDemy Team

  • Hey Philip,

    Thanks for your response. You can use the SORT and FILTER functions along with the LARGE function to solve your problem.
    Here’s the practice sheet we used. You can check it out for a better understanding.
    SORT-FILTER.xlsx
    You can also check out this article for more detailed explanations.
    https://www.exceldemy.com/excel-top-10-list-with-duplicates/

    Regards
    Hassan Shuvo| ExcelDemy Team

  • Hello Chandan,

    Thanks for commenting. If I’m not wrong, you want to match the dataset like the one below.

    Select the entire dataset without the heading then go to conditional formatting >> New Rule

    Then select “Use a formula to determine which cells to format.”
    In the formula bar, enter the following formula:
    =AND(A3<>B3,C3<>B3)
    Press OK

    Here, “A3” represents the cell containing the customer name, “B3” represents the cell containing the ID name, and “C3” represents the cell containing the real name. You can adjust the cell references based on your data.
    Choose the formatting option that you want to use for the highlighted rows. For example, we took light green color here for highlighting.
    The final outcome will look like the image below.

    I hope this answer will help you to identify matched names. Please let us know if you have any other queries. Also, you can post your Excel-related problem in ExcelDemy Forum with images or Excel workbooks.

    Regards
    Mizbahul Abedin | ExcelDemy Team

  • Dear MD. KAMAL HOSSAIN,

    To obtain your required format please follow the following simple steps:
    From your Excel Workbook, press ALT + F11 to open Visual Basic Editor.
    Insert a module.
    Paste the following code:

    Function NumberToWords(ByVal Number As Long) As String
        Dim Ones() As String
        Dim Tens() As String
        Dim Group() As String
        Dim Result As String
        
        Ones = Split("One,Two,Three,Four,Five,Six,Seven,Eight,Nine", ",")
        Tens = Split("Ten,Eleven,Twelve,Thirteen,Fourteen,Fifteen,Sixteen,Seventeen,Eighteen,Nineteen", ",")
        Group = Split("Twenty,Thirty,Forty,Fifty,Sixty,Seventy,Eighty,Ninety", ",")
        
        If Number = 0 Then ' Handle zero
            Result = ""
        ElseIf Number < 10 Then
            Result = Ones(Number - 1)
        ElseIf Number < 20 Then
            Result = Tens(Number - 10)
        ElseIf Number < 100 Then
            If Number Mod 10 = 0 Then ' Handle multiples of 10
                Result = Group(Int(Number / 10) - 2)
            Else
                Result = Group(Int(Number / 10) - 2) & " " & Ones(Number Mod 10 - 1)
            End If
        ElseIf Number < 1000 Then
            Result = Ones(Int(Number / 100) - 1) & " Hundred " & NumberToWords(Number Mod 100)
        ElseIf Number < 1000000 Then
            Result = NumberToWords(Int(Number / 1000)) & " Thousand " & NumberToWords(Number Mod 1000)
        ElseIf Number < 1000000000 Then
            Result = NumberToWords(Int(Number / 1000000)) & " Million " & NumberToWords(Number Mod 1000000)
        Else
            Result = "Number is too large."
        End If
        
        NumberToWords = Trim(Result)
    End Function

    Now, return to your worksheet. Type in the following formula in the cell where you require the output and press Enter key.
    =NumberToWords(B5) & ” Taka Only”
    Here, B5 indicates the reference of the cell where you have the input number.

    converting numbers to words

    I hope this solution will be sufficient for your requirements. Let us know your feedback.

    Regards,
    ExcelDemy

  • Dear Rich Saunders,

    Query 1: The method 7 works just fine. If you write March in F4, you will get the values for that month as well.

    Query 2: The formula is universal for any Excel version. If you write the formula in any cell the formula will get you the entire row value for the name you will write in the F4 cell. For example, if you write “Nathan” in F4 cell and paste the formula in the A1 cell then the formula will write the values of the entire row( B8:D8) in the A1:A3 range.
    Yes, we should have mentioned the Ctrl+Shift+Enter in the article. We will make sure of that in the next articles. As we used Microsoft 365 so it works by pressing Enter. We are sorry for that.

    Regards
    ExcelDemy

  • Dear Tudor,

    Hope you are doing well. Answer of your questions are given below with explanation.

    1. How can I change the month and day from English to Romanian?

    Select the cell with month and date, cell C7 in our case.
    Right-click with the mouse and select Format Cells.

    monthly staff attendance

    In the Format Cells window, select Romanian (Moldova) under the Locale menu.
    Then, select any type under the Type menu and click the OK button.

    The month and date are changed into Romanian from English. Do the same process for cell E7.

    2. If an employee works on Saturday and/or Sunday, how can I collect those weekend hours separately, in a cell?

    Let’s say the first employee works on Saturday and Sunday for 5 and 6 hours respectively. He works on 4 weekends which you can see in the picture. To sum these values we’ll use the SUMIFS function.
    Apply the formula in any cell where you want the weekend hours, let’s say cell AM11-
    =SUMIFS($F$11:$AJ$11,$F$11:$AJ$11,"<>P",$F$11:$AJ$11,"<>A")

    After pressing Enter you’ll get the total weekend hours. You can use the Fill Handle tool to apply this formula to other employees.

  • Dear Aspen,

    You are most welcome.

    Regards
    ExcelDemy

  • Thanks for your suggestions.

  • Dear Victor,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Elizabeth,

    You are most welcome. We are so glad that our article fulfilled your need.

    Regards
    ExcelDemy

  • Dear Anjli Gupta,

    Answers are given in the Solution sheet of Excel File which is in Download Practice Workbook section.
    Answer sheet

    Soluation-of-Advanced-MCQs-for-Exam

    Regards
    ExcelDemy

  • Dear HG,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Seaunders,

    Thanks for your appreciation. It means a lot to us.

    Regards
    ExcelDemy

  • Dear Gunawan,

    Thanks for your suggestions. We updated the article. You can check it now.

    Regards
    ExcelDemy

  • Hi Fake Hidden,

    Thanks for your suggestions. We updated our article so that it fulfills the need of all types of readers. You may check our article now and let us know any kinds of suggestions.

    Regards
    ExcelDemy

  • Dear Rafi,

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Dear Elly,

    Thanks for your appreciation. We re-explained our formulas to make them more understandable. If you find any difficulty now, let us know in the comment section below.

    Regards
    ExcelDemy

  • Dear Rashmi,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Jay Dee,

    That’s good to hear. We are interested to know more from you.

    Regards
    ExcelDemy

  • Dear Silver,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear William B,

    You are most welcome.

    Regards
    ExcelDemy

  • Dear Eugen Safta,

    You are most welcome.

    Regards
    Shamima Sultana | ExcelDemy

  • Dear Radu,

    Thanks for your suggestion and we appreciate it. We updated the cell range.

  • Dear Sanket,

    Thanks for your appreciation.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Yar Zar Htun,

    You are most welcome. We are glad that through ExcelDemy you are improving your skill.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Vivasvan,

    You are most welcome. It’s great to know that our article helped you to complete your project.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Bo Thibaut,

    We are willing to do any Excel-related projects. Kindly share your requirements through this Email: [email protected]

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Hi Robert Bakinam,

    Here, you will get the full copy in pdf Marking Result Sheet.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear German,

    You are most welcome. To get solutions with detailed explanations, follow ExcelDemy.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Kirsten Wheeler,

    Thanks for your appreciation. To get solutions with detailed explanations, follow ExcelDemy.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear NancyM,

    Thanks for your appreciation. To get solutions with detailed explanations, follow ExcelDemy.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear CJvW,

    Thanks for your appreciation. To get more helpful content be with ExcelDemy.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Geogre,

    Thanks for your kind attention and suggestion. We updated it.

  • Dear Michael Gamal Aziz,

    You are most welcome.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Glenn,

    We are glad to hear that. ExcelDemy is trying hard to give you quality content.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Uday Kumar,

    We are working on your problem. We will appreciate you to post your problem in our ExcelDemy Forum.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Ramandeep Kaur,

    Thanks for your appreciation. Sooner we will make another exercise based on Basic and Advanced Formulas.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Datla Srinivas,

    We are working on your requirements. We hope we will come back to you with your expected solutions.

    Regards
    Shamima Sultana
    Project Manager | ExcelDemy

  • Dear Mody,

    Thanks for your appreciation.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Hello Joanie,

    You are most welcome.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Map,

    Thanks for your appreciation and suggestion. Sooner we will write an article regarding this topic.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Ven Upekkha,

    Thanks for your appreciation.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Rajesh,

    You are welcome.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear umit,

    Thanks for your appreciation it means a lot to us.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Hello Zuri,

    Thanks for your suggestion.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Carl,

    Thanks for your appreciation. ExcelDemy is glad to help you.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Sandra Aldridge,

    Thanks for your appreciation it means a lot to us. ExcelDemy is glad to help you.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Micah,

    Thanks for your kind words. ExcelDemy is dedicated to provide solutions to help you.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Mukibul Hasan,

    Thanks for your appreciation. Stay in touch with ExcelDemy.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Shanmuga Raja V S,

    Thanks for your appreciation. Stay in touch with ExcelDemy.

    Regards
    Shamima Sultana | Project Manager | ExcelDemy

  • Dear Adam,

    Thanks for your appreciation.

    Shamima | Project Manager | ExcelDemy

  • Dear Zidane,

    Thanks for your appreciation.

    Shamima | Project Manager | ExcelDemy

  • Dear Kayla,

    Thanks for your appreciation and we are glad that our Dataset Template helped you.

    Regards
    Shamima | Project Manager | ExcelDemy

  • Hello Uday Kumar,

    Kindly check the reply to your previous comment. We have given you a non-macro solution.

  • Dear Forte,

    Thanks for your appreciation. Stay in touch with ExcelDemy to get more helpful content.

    Regards
    Shamima | Project Manager | ExcelDemy

  • Dear Gilson,

    Thanks for your appreciation. Stay in touch with ExcelDemy to get more helpful content.

    Regards
    Shamima | Project Manager | ExcelDemy

  • Dear Gerry Conroy,

    You are most welcome.

    Regards
    Shamima | Project Manager | ExcelDemy

  • Dear Syed Anwar Hussain,

    Thanks for your appreciation.

    Regards
    Shamima | Project Manager | ExcelDemy

  • Hello, Xzavier!

    For better understanding, we updated the article. Kindly check it now it would be helpful.

    Regards
    ExcelDemy

  • Hello, An!

    You are most welcome. To get helpful content follow ExcelDemy.

    Regards
    ExcelDemy

  • Hello, James!

    Your appreciation means a lot to us. To have a more wonderful experience follow ExcelDemy.

    Regards
    ExcelDemy

  • Hi Rassulsson!

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Thanks, Michael, for your query. From your comment, it seems that you want to permanently assign the replacing dataset (denoted by Reprng in the code) instead of taking them in a prompted input box. You can do that by following the steps below.

    1. First, set a Name to the range that contains the Find & Replace with columns (In this case E5:F6). To do that, select the range and type a suitable name on the Name Box. Suppose you give the name “Find_Replace_Array”
    2. Now, open a new module and write the given code of method 1.
    3. Then, on the code, replace the line :

    Set Reprng = Application.InputBox(“Replace with: “, Title, Type:=8)

    With the following line.

    Set Reprng = Range(“Find_Replace_Array”)

    Now, if you run the code, you will only need to select the range where you want to replace values and it will automatically replace the values for you. Here, you will not be required to manually input the address of Find_Replace_Array.

    Hope it does the job for you. If you have any further queries, do let us know. Moreover, if your problem persists, you can post your problem in our Exceldemy Forum along with your Excel file.

  • Hello, Hamza!

    Thanks for your appreciation. We are glad that our article helped you.

    Regards
    ExcelDemy

  • Hello, A!

    If your file is protected by using Encrypt with Password feature then it won’t work. We mentioned it in the Things to Remember section.

    Regards
    ExcelDemy

  • Hello, Nabil sellami!

    Thanks for your appreciation. To get more enjoyable articles stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, JeteMc!

    Welcome, JeteMc. To get more helpful information stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Helen!

    Thanks for your appreciation. To get more helpful information stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hi, Irene!

    Thanks for your appreciation. To get more helpful information stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hi, Elton!

    Thanks for your appreciation. We will try to launch pdf files.

    Regards
    ExcelDemy

  • Hello, Muhammad Luqman!

    You can download it from Download Excel Formulas Cheat Sheet PDF section.

    Regards
    ExcelDemy

  • Hi, Bosco!

    Thanks for your appreciation. To get more informative contents stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Joe Smith!

    The 64-bit version of Excel is not compatible with 32-bit active x controls. To know more about it you can visit this site

    Regards
    ExcelDemy

  • Hello, Aleksandra!

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello, Bennie!

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello, Harry!

    You can download the copy from Download Sample Workbook

    Regards
    ExcelDemy

  • Hello, Emil Lazar!

    Thanks for your appreciation. Stay in touch with ExcelDemy to get more useful articles.

    Regards
    ExcelDemy

  • Hi Abishek Sharma!

    If you want the Excel file then you can download it from the Download Practice Workbook section. Or you need other assistance you can comment or send us mail at [email protected]

  • Hello, Nastaran!

    Thanks for your appreciation. We are glad that our post helped you.

    Regards
    ExcelDemy

  • Hello, Ruben!

    It’s glad to know that our content is helpful to you. To know more about Excel stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Tanael Wawe!

    You are welcome. Stay in touch with ExcelDemy to get more helpful content.

    Regards
    ExcelDemy

  • Hello, Tanael Wawe!

    Thanks for your appreciation. Stay in touch with ExcelDemy to get more helpful content.

    Regards
    ExcelDemy

  • Hello, Dan!

    Thanks for your appreciation. It means a lot.

    Regards
    ExcelDemy

  • Hello, Ahnaf!

    You are most welcome. stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Aleem!

    Thanks for your appreciation. stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Mohan!

    Thanks for your appreciation. Stay in touch with ExcelDemy for more helpful content.

    Regards
    ExcelDemy

  • Hello, Many!

    You are most welcome. To get more helpful content with explanations stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, ExcelAmateur!

    Thanks for your appreciation. To get more helpful content with explanations stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Mubashir!

    Thanks for your appreciation. To get more helpful content stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Glad to hear that.

    Regards
    ExcelDemy

  • Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello!

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello, Andy W!

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hi, Dhaval!

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello, Pankaj!

    We are glad to know that it worked for you. To get more useful content stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Suzette!

    Thanks for your appreciation. We will try to use fonts that will be easier to read for old eyes.

    Regards
    ExcelDemy

  • Hello, Eric!

    Thanks for your appreciation. To get more helpful content stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Instast!

    Thanks for your appreciation. To get more helpful content stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Greetings ASHISH PANT,
    I appreciate you asking this question. We use the Microsoft Office 365 version here. In order to resolve your problem, you need to open the Excel workbook in Microsoft Office 365 version.

    Regards
    ExcelDemy

  • Hello, Andre!

    Thanks for your appreciation. To get more helpful posts stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Michelet!

    Thanks for your appreciation. Stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Im!

    Hope you are doing well. Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hello, Leslie!

    Hope you are doing well. Thanks for your appreciation. Stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Aston!

    Hope you are doing well. To show your data labels in millions kindly follow this article Millions in Data Labels

    Regards
    ExcelDemy

  • Hello, Chan!

    Hope you are doing well. Glad to know that our content is useful for you.

    Regards
    ExcelDemy

  • Hello, Kim!

    Thanks for your appreciation. For more useful content visit our site ExcelDemy.

    Regards
    ExcelDemy

  • Hello, Suki Nasoordeen!

    Thanks for your appreciation. Stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello Gerald,
    Do you need to know the conversion from Excel to PDF? Right? Because the original bank statement was in PDF format. So, here you can follow the steps below to convert your Excel file back to PDF file.
    Firstly, you need to open your Excel file.
    Secondly, click the File button at the top-left corner of the Excel file.

    edit bank statement, converting Excel into PDF

    Thirdly, go to Save As and click it.

    edit bank statement, conversion

    Fourthly, choose PDF from the Save option at the top-right corner by clicking the drop-down button.

    conversion from Excel to PDF

    Finally, choose a particular location to keep it by selecting Browse button.

    conversion from Excel to PDF

    Thanks
    Regards
    ExcelDemy

  • Hello, Chole Faulkner!

    Thanks for your appreciation. Stay in touch with ExcelDemy.

    Regards
    ExcelDemy

  • Hello, SS!

    Hope you are doing well. We are very sorry that you are facing some troubles with advertising. But will try our best to give you a nicer experience.

    Regards
    ExcelDemy

  • Hi Zidane

    Hope you are doing well. Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hi Peter

    Thanks for your appreciation.

    Regards
    ExcelDemy

  • Hi Mohammed Hassen,

    Thank you so much.

    Thanks
    Regards
    ExcelDemy

  • Hi N,

    Thanks for your appreciation. Please visit our site for more excel-related problems.

    Thanks

    Regards
    ExcelDemy

  • Hi Bernadeth,

    Thanks for your appreciation. To get more useful content kindly visit our site.

    Thanks
    Regards
    ExcelDemy

  • Hi GIRIDAR N,

    Thanks for your appreciation and we are glad to help you. For any types of Excel-related problems kindly reach out to us.

    Regards
    ExcelDemy

  • Hello Marian,

    There are some unwanted issues that may arise while dealing with the VBA code. In that case, you need to utilize the following code.

    Sub Extract_Data_from_PDF()
    
    Dim MyWorksheet As Worksheet
    
    Set MyWorksheet = ActiveWorkbook.Worksheets("Sheet1")
    Application_Path = "C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe"
    PDF_Path = "C:\Users\USER\Desktop\Durjoy\Comments\New folder\standardnormaltable.pdf"
    
    Shell_Path = Application_Path & " """ & PDF_Path & """"
    Call Shell(pathname:=Shell_Path, windowstyle:=vbNormalFocus)
    
    Application.Wait Now + TimeValue("0:00:03")
    
    SendKeys "%vpc"
    SendKeys "^a"
    SendKeys "^c"
    
    On Error Resume Next
    Range("A1").PasteSpecial
    
    Call Shell("TaskKill /F /IM Acrobat.exe", vbHide)
    
    End Sub

    Here, the Application path and pdf path need to be defined accurately. Then, when you run the code, you will find the copied items in the clipboard.
    Then, click on Paste all to extract values.

    null

    Thanks
    Author, ExcelDemy

  • Hi Exceler,

    Here, I tried the first method for 50 sets of data and it worked but you have to change the cell references based on your dataset. For your better understanding, I am attaching the images along with the formula.
    =INDEX($D$5:$D$30,MATCH(1,MMULT(--($B$5:$C$30=F5),TRANSPOSE(COLUMN($B$5:$C$30)^0)),0))

    The images of datasets

    Image of dataset

    Here, I used the formula for the entire dataset. I changed the references based on my dataset.

    Formula

    Output for 50 values:

    Output

    Note: If your dataset is very large kindly send us your dataset

    Thanks
    Shamima Sultana

  • Hi Tom Lynham

    Hope you are doing well. Here, I updated the article which implies the title and the explanation.

    By following above explained methods it is possible to print colorful gridlines but you must use a color printer.

    If this update doesn’t help you or you have further queries kindly let us know.

    Thanks
    Shamima Sultana

  • Hello Mark,

    We uploaded the Excel files again, you can check these files also. If you find any difficulty opening the file let us know.

    Thanks

  • Hello Mark,
    Hope you are doing well.
    Whenever I try to download this workbook it works fine without a password. To be reassured a couple of my teammates also downloaded this file they also didn’t face any difficulty.
    As I haven’t used any password for this worksheet. I really want to know what caused such issues while you downloaded the file.
    Here, I will show you what it looks like when I download the file again.

    After downloading the file Excel shows a warning message. You have to click on Enable Editing.

    Excel sheet name in formula dynamic

    Later, the downloaded file will be available to use or you can make any changes you want.

    Solution

    N.B. If this solution doesn’t work for you. Kindly sent me the screenshots of the problem.

    Thank you.

    Regards
    Shamima Sultana

  • Hi Froggy,
    Hope you are doing well. Thanks for reaching out to us with your issue.

    As you intend to apply the above code to a workbook with multiple sheets so you need to add some extra lines in your code to define all available worksheets or selected worksheets.

    Here, I will give you two solution
    1. For selected sheets
    2. For all the available sheets in a workbook

    1. If you want to apply the same code in some selected sheets then use the code given below where I declared sheets names by using an Array.

    Option Explicit
    Sub AddSpaceBetweenRows()
    Dim all_sheets As Worksheet
    Dim rng As Range
    Dim i As Long
    Dim all As Variant

    Set all = sheets(Array(“VBA1”, “VBA2”))

    For Each all_sheets In all
    all_sheets.Select
    Set rng = Range(“B5:E9”)
    For i = rng.Rows.Count To 2 Step -1
    rng.Rows(i).EntireRow.Insert
    Next i
    Next
    End Sub

    2. To loop through all the available sheets of your workbook you will need to use the code given below where I declared all_sheets and used an extra For Loop.

    For your better understanding, I’m providing the modified code here,

    Option Explicit
    Sub AddSpaceBetweenRows()
    Dim all_sheets As Worksheet
    Dim rng As Range
    Dim i As Long

    For Each all_sheets In Worksheets
    all_sheets.Select
    Set rng = Range(“B5:E9”)
    For i = rng.Rows.Count To 2 Step -1
    rng.Rows(i).EntireRow.Insert
    Next i
    Next
    End Sub

    Note: Based on your Excel file you will need to change the sheet name and the cell range selection.

    For further queries comment down below.

  • Hello Naveed,

    Hope you are doing well. Kindly send me the details of your problem including the Excel file via my Gmail account [email protected]

    Thank you

  • Hi Helen,
    I’m glad that our article helped you. For any types of Excel related problems kindly check out our ExcelDemy site.

    Thanks
    Shamima

  • Hello Michelle,
    Hope you are doing well. If you need to run the macro after the first use it will create new sheets with the updates you made on your dataset.

    It won’t automatically update the workbooks created previously (Book1, Book2, and Book3) rather it will create Book4, Book5, and Book6 with the updated dataset.

    Thanks
    Shamima Sultana

  • Hi A,

    Thanks for your appreciation.

  • Hi Sikander,
    Hope you are doing well.
    To get the DateValue for February, click on the drop-down option of Month and then select February.

    monthly staff attendance

    Then you will get the DateValue and the rest will be updated automatically.

    2. Monthly Stuff Attendance

    Note: If you want to type the month name in that cell you have to be careful with the spelling of the month name.

    Thanks

    Regards
    Shamima Sultana

  • Hi Deon Bailey,
    Hope you are doing well. Thanks for reaching out to me with your issue.

    As you didn’t share your Excel file that’s why it is hard to understand your sheet name and where is the problem occurring.

    But you need not to worry, I’m giving you a possible solution so that you can add data to your selected sheet to the last row.

    The reason for overwriting the added data is your code wasn’t finding the last row it was showing 1 as the last row number.

    Here, I added data according to my dataset I used in this article. I commented out your code and added some required lines.

    Sub Insert_Value_from_LastRow()

    ‘TargetSheet = Cmb_Months.Value
    ‘If TargetSheet = “” Then
    ‘Exit Sub
    ‘End If
    Dim targetSheet As Worksheet
    Set targetSheet = ThisWorkbook.Worksheets(“Dataset”)
    targetSheet.Activate
    ‘lastrow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
    LastRow = ActiveSheet.UsedRange.Rows(ActiveSheet.UsedRange.Rows.Count).Row
    MsgBox LastRow

    ‘ActiveSheet.Cells(LastRow + 6, 2).Value = Cmb_Area.Value
    ‘ActiveSheet.Cells(LastRow + 6, 3).Value = Txt_Ln_Manager.Value
    ‘ActiveSheet.Cells(LastRow + 6, 4).Value = Txt_FName.Value
    ‘ActiveSheet.Cells(LastRow + 6, 5).Value = Txt_Surname.Value
    ‘ActiveSheet.Cells(LastRow + 6, 6).Value = Txt_S_Number.Value

    ActiveSheet.Cells(LastRow + 3, 2).Value = “Rachel Ross”
    ActiveSheet.Cells(LastRow + 3, 3).Value = “Germany”
    ActiveSheet.Cells(LastRow + 3, 4).Value = “laptop”
    ActiveSheet.Cells(LastRow + 3, 5).Value = 4567

    End Sub

    Note: Whenever you want to insert or add data after a particular row it is better to see the last row number by using MsgBox. It will help you to understand why data is overlapping.

    I also added the images.

    reply of comment

    reply of comment

    For further queries, you can send me your Excel file.

    Thanks
    Shamima Sultana

  • Advanced Excel Exercises with Solutions PDF

     

     

    ExcelDemy