MD Tanvir Rahman
Hello, I am Tanvir, graduated from BUET. Previously worked in a reputed Metal and Plastic Can Manufacturing company. On that short year long tenure, I found MS Excel is the most unique and useful software that reduce both time and paper consumption. Now, I am an Excel enthusiast, love to deal with new inscrutable daunting shortcomings and publish contents on Exceldemy.com.
Dear MARCO, Thanks a ton, and my heartfelt gratitude to you.
Query 1: #NAME? error
Considering you are trying the code mentioned in the content. However, there are several reasons for getting #NAME? error in Excel.
Issue 1: The code contains custom custom-created Public Function. So, when you download the file from our site, by default it it may be blocked by your local administration. Macro remains disabled in the blocked file. So, you must unblock the file by selecting File > Right-Click on Mouse > Properties > Check Unblock.
Issue 2: Spelling mistake in the function name shows #NAME? error.
Issue 3: Incorrect range and cell references also lead to #NAME? error.
To learn more about #NAME? error, go through #NAME? error in Excel.
Query 2: Convert Km instead of Miles
The mentioned code returns the outcome in Miles. However, you can convert Miles into Kilometers by inserting the following formula.
=(Calculate_Distance(C8,C9,C11))*1.61
or,
=CONVERT(Calculate_Distance(C8,C9,C11),”mi”,”km”)
Thanks for reaching out. We team Exceldemy are here to assist you. Please let us know if you face any other shortcomings.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
Exceldemy, Softeko.
Dear Jae, You have my heartfelt gratitude. I found your queries quite distinctive and innovative. Yes, you can find out Names based on multiple data. Although there is no single functions in VBA that can extract result based on data, you must apply multiple VBA functions such as SPLIT, COUNTA, OFFSET, IF to get the job done.
Step 1: Write the VBA code in the module and hit the Run icon.

VBA Code
Step 2: Obtain output as follows.

Thanks a ton. Have a good day.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
ExcelDemy, Softeko
Hello Nathan, Thanks for your observation. I got your shortcoming. This article focuses on removing links of local storage before opening Excel Spreadsheet files.
However, probably you are likely to remove hyperlinks such as doc links, youtube links, any website links. To remove hyperlinks, you can follow the article: Remove Hyperlinks from Excel Worksheets
I hope now you will be able to fix the issue. For any further shortcomings please let me know. We, team ExcelDemy are ready to assist you.
Thanks a ton. Have a good day.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
ExcelDemy, Softeko
Hello! Peter Atallah, Thanks for the Query. It sounds like you’re encountering an issue with the “Find and Replace” feature in Microsoft 365 Apps for Enterprise, where you used to see a message box indicating the number of replacements made, but it’s no longer appearing. Here are a few steps you can try to troubleshoot and resolve this issue:
1. Check Notification Settings: Make sure that notifications are enabled in your Microsoft Office settings. Sometimes, notifications may have been disabled, which could prevent the message box from appearing.
2. Update or Repair Office Installation: Ensure that your Microsoft Office installation is up to date. Sometimes, issues can arise due to outdated software. If updating doesn’t work, you could also try repairing your Office installation. To do this, go to “Control Panel” > “Programs and Features,” select Microsoft Office, and choose “Change.” Then, select “Repair” and follow the prompts.
3. Reset Office Settings: If the issue persists, you can try resetting your Office application settings to their defaults. To do this, open any Office application (e.g., Word), go to “File” > “Options” > “Advanced,” and click the “Reset” button under the “Reset” section. Please note that this will revert all customizations back to their default settings.
Please feel free to let us know the update after trying these approaches.
Thanks a ton. Have a good day.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
ExcelDemy, Softeko
Dear Lorenzo Pomini, Thank you so much for your queries. Probably Excel file location is not correct or you forgot to rename a sheet as “January“. However, please follow the mentioned steps. I hope it works.

Step 1: Make sure you created 2 or more worksheets in a preferred location.
Step 2: Create a worksheet named “January”

Step 3: Insert the following code in the module and hit the Run button.

Code Explanation:
Step 4: Select the folder to where Excel files are located.

Step 5: Obtain outcome containing data of 2017, 2018, 2019, 2020 in the January worksheet of the active workbook.

I hope these steps will be helpful to you. Please let me know if you face any further shortcomings. Thanks a ton. Have a good day.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
Exceldemy, Softeko.
Dear Brittany, Thank you so much for your distinctive query. Here we are setting up a sample dataset of Electronics, Fashion and Snacks category. Using the following formula containing IF function in the D5 cell, you will be able to call the value of cells of the row once it is matched to a cell of same column.


=IF(C5=C$2,D$2,IF(C5=C$3,D$3,IF(C5=C$4,D$4,”Uncategorized”)))
Now drag the Fill Handle tool to fill the cells automatically.
I hope, the solution will be fruitful to you. For any further shortcomings, don’t forget to reach us. Have a good day.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
Exceldemy, Softeko
Dear Savvas, You are most welcome. Your encouraging words motivate us a lot. Please stay tuned with Exceldemy for amazing contents.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
Exceldemy, Softeko
Hello Asmitha, Thanks for your query. I found it very fascinating. Yes, we can insert a image in the A1 cell and export it to the Outlook in the middle of the email body.

Put the following VBA code in the module and get the output like below image.
Thanks a ton and have a good day.
Regards,
MD Tanvir Rahman
Excel and VBA Content Developer
Exceldemy, Softeko