Aung Shine

About author

Aung Shine completed his bachelor’s in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. It has been almost 2 years since he joined SOFTEKO and actively working on the ExcelDemy project. Currently he works as a Team Leader where he guides his team members to create technical content. He has published 150+ articles and reviewed 50+ articles. He has also solved various user problems before. He has interests in Data Analysis, Power Query, Advanced Excel, Statistics, etc.

Designation

Team Leader at ExcelDemy in SOFTEKO.

Lives in

Dhaka, Bangladesh.

Education

B.sc in Electrical and Electronics Engineering (EEE), BUET.

Expertise

Content Writing, VBA, Matlab, AutoCAD, Microsoft Office.

Experience

  • Technical Content Writing
  • Team Management

Summary

  • Currently working as a Team Leader of ExcelDemy.
  • Started technical content writing of Excel & VBA in January 2022 later prompted as Team Leader for Content Management.

Latest Posts From Aung Shine

0
Creating a Drop Down Filter to Extract Data Based on Selection in Excel

The Filter feature in Excel helps us to extract data according to our selections. However, the problem with the feature is that the row numbers and the cell ...

0
How to Convert 7 Digit Julian Date to Calendar Date in Excel (3 Ways)

Often, food manufacturers, pharmaceutical companies, and different other sectors use the Julian date format in their products. But this date format is not ...

0
Apply Custom Data Validation for Multiple Criteria in Excel (4 Examples)

Sometimes we need to input data based on multiple criteria in our Excel datasheet. Data entries that don’t follow our desired conditions may create problems in ...

0
Combine Multiple Excel Files into One Workbook with Separate Sheets (4 Methods)

In this example there are three different Excel Files and each of them contain a different Sheet. Method 1 - Apply Move or Copy Operation to Combine ...

0
How to Combine Two Graphs in Excel (2 Methods)

Quite frequently we insert graphs for a certain dataset in our Excel worksheet. Graphs help us to analyze our progress or productivity. It can also provide us ...

0
How to Format Cell Based on Formula in Excel (13 Useful Examples)

The following dataset represents the Devices of several Brands, Models, and Prices of those Devices. We will use it to demonstrate how to format cells based on ...

0
How to Autofill Days of Week Based on Date in Excel (5 Easy Ways)

We'll use a sample dataset as an example. For instance, the following dataset represents a Salesman and his Joining Date in a company. We will Autofill the ...

0
Errors in Excel and Their Meaning (15 Different Errors)

Every now and then, we bump into errors in the Excel datasheet. Whenever we input something wrong in the formula or function, Excel lets us know that with a ...

0
How to Filter and Delete Rows with VBA in Excel  – 2 Methods

  The sample dataset showcases Salesman, Product, and Net Sales of a company. Method 1 - Filtering the Visible Rows and Deleting them with ...

0
Count Cells by Color with Conditional Formatting in Excel (3 Methods)

  The sample dataset contains the Salesman, Product, and Net Sales of a company. The Conditional Formatting feature in Excel is used to format ...

0
Copy and Paste Is Not Working in Excel (9 Reasons & Solutions)

The following dataset represents the Product, Price, Quantity, and Total of a company. We'll use it to demonstrate the most common reasons for copy-paste not ...

0
How to Count Filtered Cells with Text in Excel (3 Methods)

We may sometimes need to count the Excel cells with text for different purposes. That is not hard to do. But, things get complicated when we try to count the ...

0
How to Copy and Paste in Excel When Filter Is On (5 Methods)

The Filter feature is a very useful tool for anyone working with MS Excel. But, it causes various problems when we try to copy and paste in Excel datasheets ...

0
Calculate Percentage Using Absolute Cell Reference in Excel (4 Methods)

Sometimes, in our Excel worksheet, we need to calculate the percentage of multiple cells with reference to a specific cell value. But the AutoFill tool changes ...

0
How to Calculate Percentage in Excel Based on Cell Color (4 Methods)

Sometimes, in our Excel worksheet, we need to calculate the percentage based on cell color. In this article, we’ll show you the simple methods to Calculate the ...

Browsing All Comments By: Aung Shine
  1. Hi KEVIN,
    Thanks for reaching out to us. To get only the parameters you mentioned, adjust the XPath expressions used to select the specific elements from the XML response. Here’s the modified code:

    
    Option Explicit
    
    Function ReverseGeocode(lati As Double, longi As Double) As String
        On Error GoTo ErrorHandler
        
        Dim xD As New MSXML2.DOMDocument
        Dim URL As String
        
        xD.async = False
        URL = "https://nominatim.openstreetmap.org/reverse?lat=" & CStr(lati) & _
              "&lon=" & CStr(longi)
        
        xD.Load (URL)
        
        If xD.parseError.ErrorCode <> 0 Then
            ' Handle parsing errors
            ReverseGeocode = "Error: " & xD.parseError.reason
        Else
            ' Set XPath selection language
            xD.SetProperty "SelectionLanguage", "XPath"
            
            ' Select specific elements using XPath
            Dim country As MSXML2.IXMLDOMElement
            Dim state As MSXML2.IXMLDOMElement
            Dim city As MSXML2.IXMLDOMElement
            Dim county As MSXML2.IXMLDOMElement
            Dim zipCode As MSXML2.IXMLDOMElement
            
            Set country = xD.SelectSingleNode("/reversegeocode/addressparts/country")
            Set state = xD.SelectSingleNode("/reversegeocode/addressparts/state")
            Set city = xD.SelectSingleNode("/reversegeocode/addressparts/city")
            Set county = xD.SelectSingleNode("/reversegeocode/addressparts/county")
            Set zipCode = xD.SelectSingleNode("/reversegeocode/addressparts/postcode")
            
            ' Build the result string in usual address manner
            ReverseGeocode = country.Text & ", " & state.Text & ", " & city.Text & ", " & _
                             county.Text & ", " & zipCode.Text
        End If
        Exit Function
    ErrorHandler:
        ' Handle runtime errors
        ReverseGeocode = "Error: " & Err.Description
    End Function
    

    Hope this helped. Let us know your further queries.
    Regards,
    Aung
    Team ExcelDemy

  2. Hello ALEKS,
    Thanks for reaching out to us. Make sure that all the cells in the date column of the Pivot table are in the accurate date format. Only then the date filter will work properly. Moreover, ensure the Excel option mentioned in the second solution of the article is ticked. Hope this helped.
    Reach out to us again for any further queries.
    Regards,
    Aung

  3. Hello,
    Thanks a lot for letting us know about this process. We’ve added the new method.
    Regards,
    Aung
    ExcelDemy

  4. Hello, thanks for reaching out.

    I am not sure which step you’re referring to. If it’s the first drop-down under the Edit the Rule Description, please choose Format only cell with: Cell Value from the options. However, you should see that being selected by default.
    Kindly let us know your further queries.

    Regards,
    Aung
    ExcelDemy

  5. Thanks for reaching out.

    You can follow method 3 of this article to accomplish your task. Go to the destination sheet and click a cell where you want to paste the names. Insert this formula:
    =FILTER(Source!A2:B20, “Y”=Source!C2:C20)
    Press Enter to get the results. Here, “Source” is the sheet name of your source sheet where the names are present along with Yes/No. A2:B20 is the cell range of the first and last names. Change it according to your dataset. C2:C20 is the cell range with Yes/No.

    This should work. Hope this helped.
    Regards,
    Aung
    ExcelDemy.

  6. Thanks for reaching out.

    Suppose, the technician’s name is Jim. You can follow method 1 of this article to manually copy the row after applying a filter for Jim. Then you can paste it in the sheet for Jim.

    You can also follow sub-method 2.2 of method 2 of this article to apply VBA to perform your task. In the code, you just have to change the sheet names according to your requirement. You should also modify the range to look for the technician name: in your case it’s column D.
    Suppose, the main sheet name is Sheet1 and the destination sheet name is Jim, our technician. The code will be:

    
    Sub MoveRow_KeepOriginal()
    Dim rg As Range
    Dim xc As Range
    Dim p As Long
    Dim q As Long
    Dim r As Long
    p = Worksheets("Sheet1").UsedRange.Rows.Count
    q = Worksheets("Jim").UsedRange.Rows.Count
    If q = 1 Then
    If Application.WorksheetFunction.CountA(Worksheets("Jim").UsedRange) = 0 Then q = 0
    End If
    Set rg = Worksheets("Sheet1").Range("D1:D100" & p)
    On Error Resume Next
    Application.ScreenUpdating = False
     For r = 1 To rg.Count
     If CStr(rg(r).Value) = "Jim" Then
     rg(r).EntireRow.Copy Destination:=Worksheets("Jim").Range("A" & q + 1)
     q = q + 1
    End If
    Next
    Application.ScreenUpdating = True
    End Sub
    

    This code should do the work. You can try this by changing the technician name. Hope this helped.
    Regards,
    Aung
    ExcelDemy

  7. Thank you Michael for your comment. We made adjustments in the Excel file. Please find the added VBA code for the last example you mentioned.
    Regards,
    Aung

  8. Thank you very much. This article shows how you can pull data from different worksheets present in a workbook. However, if you want to extract data from sheets present in different workbooks, kindly go through the article linked below. It will guide you through the complete procedure.

    https://www.exceldemy.com/excel-macro-extract-data-from-multiple-excel-files/

    Moreover, you can create a simple formula:

    =’D:\SOFTEKO\[task_problems.xlsx]Sheet1′!$C$18

    Where D is the drive location, SOFTEKO is the folder name, task_problems is the desired excel file, Sheet1 is the worksheet, and C18 is the required cell value.

    Here, make changes according to your requirements.

    Good luck.

  9. Thank you very much. This article shows how you can pull data from different worksheets present in a workbook. However, if you want to extract data from sheets present in different workbooks, kindly go through the article linked below. It will guide you through the complete procedure.

    https://www.exceldemy.com/excel-macro-extract-data-from-multiple-excel-files/

    Good luck.

  10. We’re very glad to hear that we could be of help to you as well.

    Good luck.

  11. Thank you very much for correcting us. We removed the reference as it’s not really necessary. You just have to color the cells E5 and E6 in blue and orange respectively. This is for the purpose of taking reference in the argument of the function we inserted in cells F5 and F6.

    Thank you again.

  12. We’re happy to help you out. Kindly refresh the worksheet if you change the cell colors. You’ll find the Refresh button in the Data tab. However, if we can improve the code to update it automatically, we’ll let you know.

    Good luck.

  13. We’re glad to know that we could help you out. In the case of the VBA method, kindly refresh the worksheet after you change the color of the cells. You’ll find the Refresh button in the Data tab. However, if we can improve the code to update it automatically, we’ll let you know.

    Good luck.

  14. Thanks for reaching out to us. Please go through the article linked below. I believe that will help to solve your issue. You can also mail us your Excel file at [email protected] and state your conditions.

    https://www.exceldemy.com/merge-two-columns-in-excel/

    Good luck.

  15. Thank you so much for pointing out the issue. We have updated the article. Now it’s alright. Please check.

  16. Thanks for reaching out. Kindly mail me your Excel file and queries at [email protected]
    I’ll be happy to help.

  17. Thanks, glad we could help you.

  18. Welcome ASIM, glad we could help you.

  19. Thanks, LOUIS for reaching out to us. Please drop your excel file and queries at [email protected]
    This is Aung, one of the writers of ExcelDemy. I’d like to help to solve your problem, but I didn’t exactly understand your criteria. I hope you elaborate a bit further.
    Thanks.

  20. Hello SHERRY,

    This is Aung, one of the writers/developers in ExcelDmey. Thank you for pointing out the issue. We have re-uploaded the excel file. Now you can download it without any problem.

    Good luck.

  21. Hello BRIAN,

    This is Aung, one of the writers/developers in ExcelDmey. I’ve looked into your matter. I understand you want to split the cell values. Kindly send me your excel file at [email protected]

    I’ll make the necessary changes and explain them to you.

    Good luck.

  22. Hello BRYAN,

    This is Aung, one of the writers/developers in ExcelDmey. I’ve looked into your matter. What you need to do is just modify your formula. Choose any one from the below 2 formulas:

    =SUMPRODUCT(AA3:AA43,(–(TEXT(I3:I43,”mmmm”)=TEXT(B1,”mmmm”))))

    =SUMPRODUCT(AA3:AA43,(–(MONTH(I3:I43)=MONTH(B1))))

    Both should work perfectly fine.

    Good luck.

  23. Thank you Roger for the beautiful comment.

  24. Thank you ROGER for reaching out to us. Sure you can send me your files at my mail: [email protected]
    I’ll be happy to help you.

  25. Welcome WILLIAM, it’s always a pleasure to hear that we were of any help to you.
    Thanks for the nice comment. Good luck.

  26. Hello SHAWN,
    Thank you for letting us know your queries. Yes, there’s a way to attach a button to run your desired macro. Just insert any shape (Insert > Illustrations > Shapes) in the worksheet. Then, right-click on the shape to get the Context Menu. There, select the Assign Macro option. Hence, it’ll return a dialog box. Choose your desired macro and press OK. In this way, you don’t have to go to the VBA window to press the Run key.
    Hope you can perform the task. Please reach out to me at: [email protected] for further queries.
    Good luck.

  27. Hello COEN,
    Thanks for reaching out to us. Regarding your issue, select the range A1:I30 of Sheet1 first. Then, go to Sheet2. Press the Ctrl key, and select the range A1:I20 simultaneously. Thus, you’ll have selected your desired ranges from both sheets. Now, follow the steps in method 3. In this way, you’ll have your required email body.
    Good luck.

  28. Hello JKS,
    Thank you so much for pointing out the mistake. We’ve uploaded the accurate VBA codes in methods 2 & 3.
    And about your other issue regarding the screenshots, the codes are really long. That’s why we have demonstrated the upper portions only. But the entire code is there.
    Lastly, we are grateful for your feedback. It helps us to grow.
    Good luck.

  29. Thank you Hendry for reaching out.
    I’ve looked into your matter. You can easily carry out the mentioned operation using the 5th method in this article i.e. VBA method.
    Kindly try with VBA and if you still can’t get the job done, feel free to email me. My mail: [email protected]
    Good luck.

  30. Hello DARRYL,
    I’m not sure what you tried to mean by missing colors. The Headers are still blue in the email body. Please reach out to me at: [email protected] for any further queries. I’ll be happy to help.
    Good luck.

  31. Welcome SHAUL. It’s always a pleasure to hear that we were of any help to you.
    Good luck.

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo