User Posts: Mohammad Shah Miran
Conditional Formatting is an excellent feature to format your worksheet based on specific criteria. For instance, you can use Conditional Formatting to ...
Financial analysts frequently want to know the duration of repayment time while making a business deal. Therefore, if you are a financial analyst, you might ...
In some specific cases, you might have to use the spotlight color to make a remark in your Excel Sheet. To make the task more interactive, you can create a ...
In statistical analysis, performing Correlation and Regression calculations is the popular way to analyze and predict future events. However, there are several ...
Excel’s DSUM function is used to extract and sum a set of data from a database. It computes the sum of a set of data that meets certain criteria. In this ...
Creating a Stacked Bar Chart is an easy way to depict your data and compare them concisely. This article can help you if you're trying to figure out how to ...
SUMIF and AND are the most frequent functions in everyday life when we work in Microsoft Excel. If you are an Excel enthusiast, then you might already work on ...
Both Variance and Standard Deviation are popular terms in statistical analysis. Do you know Excel provides multiple opportunities to calculate those in your ...
When you work with a large set of data, your data may disperse in several sheets of your Excel file. A dynamic drop-down list can help you to accumulate that ...
For a number of tasks and uses, including financial analysis to sales forecast, Excel will continue to be a crucial tool for enterprises. For instance, you can ...
Excel is essential to business analysis because it offers a variety of ways to store and analyze data. In addition, it is a practical, cost-effective, and ...
Suppose you are in a situation where you need to make a certain decision based on some specific condition. This is a probabilistic analysis thus you have to ...
Networking equipment such as switches, routers, wireless, etc is well-known in the technology industry. To promote the product, companies may often require to ...
Certainly, having a clear understanding of the sales pipeline funnel can help you to understand your potential customer’s behavior throughout the purchasing ...
Excel plays a vital role in business analysis as it opens a wide range of opportunities to store data and analyze them accordingly. Apart from that, it is a ...
Thank you SHASHI, for your query. I think this article might help to solve your problem.
https://www.exceldemy.com/count-colored-cells-in-excel/#3_Utilizing_GETCELL_4_Macro_and_COUNTIFS_Functions
You can try to use this method for Conditional Formatted cells also. Further, if you have any confusion or query related to it, please let us know.
Thank you, Jeb, for your query. You can take the API as a String value to your VBA code. Thus you don’t need to put the API value in your Excel sheet. So the existing code given in the workbook here can be modified as follows:
Here we have changed the first two line of the given code. The previous code was as like:
But we have removed the third argument which represents the API value. Alternately, We declare the variable outside and put the API as a string value.
Now here comes to your second question. You have to create a customized Add-in to store your VBA code and therefore allow you to execute the code in any workbook. Hope you get your answer. However, if you have any further query, please let me know.
Thank you, Hossam for your query. I am not sure whether you alter AVERAGEIF with AVERAGEIFS. If so, there should be a difference between them as AVERAGEIF deals with single criterion whereas AVERAGEIFS deals with multiple criteria. However, you can use the AVERAGEIFS function for a single criterion by specifying only one criterion range and one criterion. For example, you have a range of cells A1:A10 that contains numbers and you want to calculate the average of the cells that are greater than or equal to 5. For accomplish your task, you can use the AVERAGEIFS function like this:
=AVERAGEIFS(A1:A10, A1:A10, ">=5")
Further if you have any query, please let me know. Thank you.
Thank you VIRGIAL for your query. Yes, you can use the COUNTIF function to count the number of items that have broken the Conditional Formatting threshold value. For doing this, write down the following formula in your desired cell. (eg. D11)

=COUNTIF(D5:D10, "<12000")
Here, D5:D10 is the data range for which you want to set your condition and 12000 is the Conditional Formatting threshold value.
Additionally, the following image can be useful to comprehend the task.
Thank you, Greg Erkins, for believing in ExcelDemy.
Use the following Macro Code to get your desired output.
To aim the output, I have written the function name UrlConstructor and called friendly name and range of country code as an argument, like the picture given below.

Download the Excel file for your better assistance (URL Construction from Friendly Name.xlsm). Also, let us know if you wish to learn more or have any concerns relevant to it. Good luck!
Thank you for getting in touch with us. Based on your comment, what i understand is that you are interested in creating a schedule to track your maintenance work. I have provided an Excel file (Machine Maintenance Schedule) that outlines the different types of work you will need to perform. However, I would like to confirm whether your MNT1 and MNT2 etc. tasks are repetitive, or if they only need to be completed once every 15 days.
If you would like to automate this process, you can incorporate a nested for loop to generate the desired output. Additionally, you can develop a sub-function to prevent repetitive values from being generated.
Further, if you have any questions or concerns about this matter, leave your query here. We are here to help and are at your disposal.
Hello Imran,
Thanks for the query. What I understand from your comment is that you want to incorporate a VBA code for the formula instead of going to the formula editor. Here are my two cents which might help you in this regard. Look at the dataset attached below.
After pressing the ALT+F11 short key to open your VBA window, paste the following code in the Module box.
Save & Close your VBA window. Then, press F8 to open the Macro dialog box and click on Options.
Create a shortcut key to make the process fast, Crtl+W for instance.
Now see the output as given below.
Hope you have got your answer. Good Luck!
Regards
Miran
Excel & VBA Content Developer