About author

Greetings! I appreciate your interest in my profile. I recently graduated from Bangladesh University of Engineering & Technology with a B.Sc. in Naval Architecture & Marine Engineering. I have a strong passion for research and development, and I constantly seek the latest knowledge from various sources to develop innovative solutions.

Latest Posts From Priti

How to Wrap Text in Excel (Wrap, Unwrap, Fix Issues)

Wrapping text in Excel means displaying all the contents of a cell over multiple lines. It comes in handy when dealing with long text entries. Wrap text ...

How to Speed Up Excel? (18 Effective Tips)

In this Excel tutorial, we will review some of the best strategies to make Excel faster with lots of data by avoiding the use of volatile functions, array ...

Types of Sparklines in Excel

Excel's Sparklines feature is a helpful tool for identifying data trends. Sparklines are tiny charts that can fit into a single cell and give quick solutions. ...

[Fixed!] Excel Date Filter Is Not Grouping by Month (3 Solutions)

Filtering data according to particular criteria, like filtering dates by month, is one of the most popular Excel tasks. Excel's date filter occasionally ...

Browsing All Comments By: Priti
  1. Hello BRANISLAV,

    Thank you for reading our article and for your comment.
    You can easily create an add-in with the same code mentioned in this article. Kindly follow the steps mentioned below.
    1. Copy and paste the code in the article in a Module.
    2. Save the Excel file as a Macro Enabled Add-in (.xlam) file. For that, go to the File tab and select Save As.

    Selecting Save As Option

    Select Excel Add-in (*.xlam) from the drop-down under the file name and press Save.

    Choose Excel Add-in Option

    3. Now go back to your Excel file. From the Developer tab, select Excel Add-ins from Add-ins group.

    Selecting Add-in Option from ribbon

    4. Next, Add-ins dialog box will pop up. Browse for the name of your .xlam file, select the checkbox beside it, and press OK. We have chosen Udf_Tooltip as it was the name of our .xlam file.

    Choose the file name from option

    Now, you can access this UDF in any Excel file on your PC.
    Hope this solves your problem.
    Exceldemy Team

  2. Hello Stefano,
    I’m glad you found the information helpful, but I understand you’re still encountering issues with adding the FNC-1 character to your SSCC Code using a Code 128 font.

    I apologize for any confusion. The downloaded font here can not directly convert codes into Barcodes. You need to apply the VBA code to create the function “=Code128” to transform the SSCC code into symbols. After that, using the downloaded font will work.

    For your second problem, there isn’t a built-in Excel function called “=Code128b” for adding the FNC-1 character. Excel has no native function for generating Code 128 barcodes with special characters.
    That is why we built a function named “=Code128” using the VBA code for your convenience. Follow step 2 which is Using VBA to Create User Defined Function to create the function.
    I hope the confusion is cleared and this process willwork for you now.
    Exceldemy Team

  3. Hello ALEQ,
    Thank you for your query. If you want to sum one specific product of two or three brands you just have to use an OR logic for brands.
    Let us assume we want to find the sum of notebook sales of Lenovo and Asus brands. For that insert the following formula:

    Applying SUMPRODUCT Function

    Here, (B5:B21=G12)+(B5:B21=G13), this part applies the OR logic for brands. It matches the range B5:B21 with G12 and G13 cell values and returns TRUE or FALSE. So, it returns TRUE for Lenovo and Asus brands and Excel counts them as 1.
    Similarly, C5:C21=G14 returns TRUE or 1 for if any match is found and D5:D21 simply returns the sales values.
    So, the function sums up the prices of notebooks of two different brands.
    If you want to sum up prices for more brands, then just add another logic that matches brands in this part “(B5:B21=G12)+(B5:B21=G13)” of the formula.
    Exceldemy Team

  4. Hello WU,
    Thank you for bringing that to my attention. You are correct that the proper formula for calculating the approximate yield to maturity (YTM) of a bond is:

    YTM = (C + (FV - PV) / n) / ((FV + PV) / 2)

    I appreciate your attention to detail, and I will ensure to update my article accordingly. Thank you for being a part of our community. If you have any further questions or require assistance, please don’t hesitate to post on our Forum.

    Exceldemy Team

  5. Greetings Michal,

    Thanks for your comment! I understand the dissatisfaction with the limitations that you’ve faced. I agree that Microsoft could do more to enhance the functionality of their checkboxes.

    Regarding your first issue, it is true that the COUNTIF function is unable to directly count the number of checked boxes.
    Your second point—that Microsoft does not support Format Control Linking in an array—is also true. This implies that each checkbox needs to be linked separately. This process can take a while, especially if there are a lot of checkboxes.

    However, we can do Format Control Linking using VBA code which we already mentioned in this article. Besides, we are adding another code that works as a function and dynamically does format control linking without any helper column and counts the checked boxes.

    To work with this code, go to the Developer tab, and select Visual Basic. Now, from the Insert tab >> you have to select Module. Write down the following Code in the Module.

    Public Function CheckBoxCount()

    Dim checkBox As Shape
    Dim count As Long

    count = 0

    With ThisWorkbook.ActiveSheet
    For Each checkBox In .Shapes
    If InStr(1, checkBox.Name, “Check Box”) Then
    If .Shapes(checkBox.Name).OLEFormat.Object.Value = 1 Then
    count = count + 1
    End If
    End If
    Next checkBox
    End With

    CheckBoxCount = count

    End Function

    Now, Save the code and go back to Excel File. Insert the following formula in the cell that you want the count of checked boxes.
    And you will have the count of checked boxes.

    Hope this solution helps address your specific requirements in a more efficient manner.

    If you have any further queries, kindly post them on our Exceldemy Forum.
    Have a nice day!


Advanced Excel Exercises with Solutions PDF