EXCEL Formula to find a value and return column it is found in

PeterH

I have some data organized similar to the below:

Week 1      Week 2      Week 3
HCE738886   HCE737035   HCE737742 
HCE736755   HCE738587   HCE737823 
HCE738711   HCE737139   HCE736870 

The data would start in Cell A1.

I want to be able to find out which column the value HCE737139 appears in.

In my actual data set there are 100s of columns and 1000s of Rows, and I will need to find more than one value.

Is there a formula that can do this, something like a 2 step MATCH ?

I have tried using MATCH but can only make this work to find the exact position within a single column or row.

Ideally I would like to avoid any macros for this, as the look up values may at time be on a different sheet, and sometime different workbook, so any UDFs may not work in these instances.

I'm hoping some type of array can do the trick.

Moacir

Considering your range is A1:C3:

For the complete address of the cell, you can use =ADDRESS(SUMPRODUCT(--(A1:C3="HCE737139")*ROW(A1:C3)),SUMPRODUCT(--(A1:C3="HCE737139")*COLUMN(A1:C3)))

For only the column number, SUMPRODUCT(--(A1:C3="HCE737139")*COLUMN(A1:C3))

For the actual column letter, =SUBSTITUTE(ADDRESS(1,SUMPRODUCT(--(A1:C3="HCE737139")*COLUMN(A1:C3)),4),1,)

While SUMPRODUCThere is working as an array, this is not an array formula, so no need for CTRL+ENTER

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Excel formula to find lowest value above a given number and return the column name

From Dev

Excel formula - If value was found in row return value from next cell

From Dev

Excel find corresponding value, return `0` if not found

From Dev

Excel formula to lookup the last value in a column and return the value of the adjacent cell

From Dev

Excel Find column value in another column and return value next to it

From Dev

Excel Formula to return a Specific Value

From Dev

Excel Formula to Find Duplicate Value

From Dev

Formula to return just the Column Letter in excel

From Dev

Excel formula to return the number of occurrence of a string in a column

From Dev

Excel formula or VBA searching for matching values, every matching value found move to new column

From Dev

Excel - Find a value in an array and return the contents of the corresponding column

From Dev

Excel VBA - How to find a value in a column and return the row it is on

From Dev

Excel Formula To Get First Non-Zero Value in Row and Return Column Header

From Dev

Excel formula to get first and last non-empty value in a row and return column header

From Dev

Excel formula to return the value that is not equal to "x"

From Dev

Excel formula to return value from grid

From Dev

Excel - Inserting cell value in formula column name

From Dev

Excel Formula to find max value in array

From Dev

Excel formula to sum value in column to the left in array formula based on criteria

From Dev

IF duplicate cell value found in column then return value

From Dev

Excel find next value in column

From Dev

Return value if value in a column is found in another dataframe column pandas

From Dev

Excel formula to find date in given range (entire column)

From Dev

Excel return value or run calculation if criteria is not met. Formula needed

From Dev

Excel: Find results in column, and then search all matched rows for another value and return sum

From Dev

Excel formula for a "running %" of a column

From Dev

Excel formula for column of last negative value in range (no array formulas)

From Dev

Excel formula only using first value in column on another worksheet

From Dev

Excel formula to compare the 2 columns and extract the value from another column

Related Related

  1. 1

    Excel formula to find lowest value above a given number and return the column name

  2. 2

    Excel formula - If value was found in row return value from next cell

  3. 3

    Excel find corresponding value, return `0` if not found

  4. 4

    Excel formula to lookup the last value in a column and return the value of the adjacent cell

  5. 5

    Excel Find column value in another column and return value next to it

  6. 6

    Excel Formula to return a Specific Value

  7. 7

    Excel Formula to Find Duplicate Value

  8. 8

    Formula to return just the Column Letter in excel

  9. 9

    Excel formula to return the number of occurrence of a string in a column

  10. 10

    Excel formula or VBA searching for matching values, every matching value found move to new column

  11. 11

    Excel - Find a value in an array and return the contents of the corresponding column

  12. 12

    Excel VBA - How to find a value in a column and return the row it is on

  13. 13

    Excel Formula To Get First Non-Zero Value in Row and Return Column Header

  14. 14

    Excel formula to get first and last non-empty value in a row and return column header

  15. 15

    Excel formula to return the value that is not equal to "x"

  16. 16

    Excel formula to return value from grid

  17. 17

    Excel - Inserting cell value in formula column name

  18. 18

    Excel Formula to find max value in array

  19. 19

    Excel formula to sum value in column to the left in array formula based on criteria

  20. 20

    IF duplicate cell value found in column then return value

  21. 21

    Excel find next value in column

  22. 22

    Return value if value in a column is found in another dataframe column pandas

  23. 23

    Excel formula to find date in given range (entire column)

  24. 24

    Excel return value or run calculation if criteria is not met. Formula needed

  25. 25

    Excel: Find results in column, and then search all matched rows for another value and return sum

  26. 26

    Excel formula for a "running %" of a column

  27. 27

    Excel formula for column of last negative value in range (no array formulas)

  28. 28

    Excel formula only using first value in column on another worksheet

  29. 29

    Excel formula to compare the 2 columns and extract the value from another column

HotTag

Archive