How to find how many times a certain string appears in the whole Excel workbook in certain columns?

Ohto Nordberg

The workbook has 52 sheets. Data I want to search is in columns F, I, L ... AM in each sheet. I must not count data in any other column. Data is string of three characters for example NOR or HEI. How do I find how many times (for example) NOR appears in that non-adjacent range?

I used function countif. I tried Naming the non-adjacent range but could not get it to work. I tried sum(countif(distinct(arguments))) but could not get it to work.

Jos Woolley

If you first create a vertical list of all your sheet names, called SheetList, for example, you can then use:

=LET(
    ξ, COLUMN($F:$AM),
    ζ, SUBSTITUTE(ADDRESS(1, FILTER(ξ, MOD(ξ - MIN(ξ), 3) = 0), 4), 1, ""),
    SUMPRODUCT(
        COUNTIF(INDIRECT("'" & SheetList & "'!" & ζ & ":" & ζ), "ABC")
    )
)

Change the "ABC" at the end to whatever string you want to search for.

Edit: for older versions of Excel:

=SUM(COUNTIF(INDIRECT("'" & TRANSPOSE(SheetList) & "'!" &
SUBSTITUTE(REPT(SUBSTITUTE(ADDRESS(1,
MODE.MULT(IF(MOD(COLUMN($F:$AM) -
MIN(COLUMN($F:$AM)),3) = {0;0},
COLUMN($F:$AM))),4),1,"") & ":",2),":","",2)),"ABC"))

which will most likely require committing with CTRL+SHIFT+ENTER.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Look for a certain String inside another and count how many times it appears

From Dev

Excel - how to count how many times a word appears within a certain date range

From Dev

Count how many times certain text combinations occurs in certain columns

From Python

Recursion function to count how many times a certain sequence appears

From Dev

Thinking logically: Calculate how many times a certain number appears in an integer

From Dev

EXCEL: I want to count how many times a certain word appears in a column if it's in the same row if another word appears

From Dev

How to count how many times a meta_value appears in a column by certain meta_key?

From Dev

How to find how many times X appears

From Dev

Check how many times a substring appears in a string

From Dev

Count how many times each character appears in the whole dataset

From Dev

How to extract string that appears after certain pattern?

From Dev

How would I detect the amount of consecutive times a character appears in string and if it reaches a certain value print to the command

From Dev

How to find out how many times a certain pattern in x rows corresponds to a value in another row?

From Dev

How to find a substring from a string with certain condition in Excel

From Dev

Excel: How to count how many times a consecutive text value appears

From Dev

How to find how many times each letter appears in a name?

From Dev

Count how many times appears text across columns

From Dev

How to find similar data on certain columns in SQL

From Dev

How to check how many times character from string appears?

From Dev

Excel: How to find a certain row and multiply the values in that row by a certain number?

From Dev

Find how many times each character appears in a linked list of strings

From Dev

Find how many times the largest digit appears in an array

From Dev

Count how many times a certain value per user has changed

From Dev

Count how many times a column contains a certain value in Pandas

From Dev

How to divide this string into different columns, with certain criteria?

From Dev

how to manipulate columns that have certain string

From Dev

Play Framework: Count how many times a key exists in a JSON tree and how many times is set to a certain value

From Dev

How to find certain substring in string and then go back to certain character?

From Dev

Searching a txt file for a string and then counting how many times it appears

Related Related

  1. 1

    Look for a certain String inside another and count how many times it appears

  2. 2

    Excel - how to count how many times a word appears within a certain date range

  3. 3

    Count how many times certain text combinations occurs in certain columns

  4. 4

    Recursion function to count how many times a certain sequence appears

  5. 5

    Thinking logically: Calculate how many times a certain number appears in an integer

  6. 6

    EXCEL: I want to count how many times a certain word appears in a column if it's in the same row if another word appears

  7. 7

    How to count how many times a meta_value appears in a column by certain meta_key?

  8. 8

    How to find how many times X appears

  9. 9

    Check how many times a substring appears in a string

  10. 10

    Count how many times each character appears in the whole dataset

  11. 11

    How to extract string that appears after certain pattern?

  12. 12

    How would I detect the amount of consecutive times a character appears in string and if it reaches a certain value print to the command

  13. 13

    How to find out how many times a certain pattern in x rows corresponds to a value in another row?

  14. 14

    How to find a substring from a string with certain condition in Excel

  15. 15

    Excel: How to count how many times a consecutive text value appears

  16. 16

    How to find how many times each letter appears in a name?

  17. 17

    Count how many times appears text across columns

  18. 18

    How to find similar data on certain columns in SQL

  19. 19

    How to check how many times character from string appears?

  20. 20

    Excel: How to find a certain row and multiply the values in that row by a certain number?

  21. 21

    Find how many times each character appears in a linked list of strings

  22. 22

    Find how many times the largest digit appears in an array

  23. 23

    Count how many times a certain value per user has changed

  24. 24

    Count how many times a column contains a certain value in Pandas

  25. 25

    How to divide this string into different columns, with certain criteria?

  26. 26

    how to manipulate columns that have certain string

  27. 27

    Play Framework: Count how many times a key exists in a JSON tree and how many times is set to a certain value

  28. 28

    How to find certain substring in string and then go back to certain character?

  29. 29

    Searching a txt file for a string and then counting how many times it appears

HotTag

Archive