Formula that searches in a row for a cell/column that contains [Solved/Closed]

Zellie - May 11, 2016 at 05:41 AM - Latest reply:  Zellie
- May 12, 2016 at 04:47 AM

It would be greatly appreciated if someone could assist me with the following formula in excel:

I would like a formula that searches in a row for a cell/column that contains a number (which column in that row) and then use/copy the number in the second cell of that same column. A specific row will always only have one column with a number in.

For instance:
Search row B11 to G11 for a cell/column with a number. If for instance the number is in cell G11. Then copy the number in cell G2 to A11. IF the number is in D11, then copy D2 to A11. There will always only be one cell/column in the row that contains a number.

I used this formula but it does not search in which column the number is and then use that column.


9990-000 1100-000 1500-000 1200-000 1300-000
in this

1100-000 3

9990-000 8
1500-000 11

1300-000 10

I don't know if such a formula is even possible but will greatly appreciate any help.

See more 

2 replies

Mazzaropi 1806 Posts Monday August 16, 2010Registration dateContributorStatus March 22, 2018 Last seen - May 11, 2016 at 05:31 PM
Zellie, Good evening.


B2 = 10
C2 = 20
D2 = 30
E2 = 40
F2 = 50
G2 = 60


A11 --> =IFERROR(INDEX(B2:G2,MATCH(LARGE(B11:G11,1),B11:G11,0)),"")

Now, try to put some number at any cell from B11 to G11

Please, tell us if it worked for you.
I hope this helps.
Belo Horizonte, Brasil.
Marcílio Lobão
Thank you so much. This worked 100%.