Searching multiple columns in a row for data

markwhite

New Member
Joined
Aug 10, 2018
Messages
2
HHi

I want to seach a row looking for any data over 9 columns. There are more than 120 rows so I just drag this formula down the column that I want the answer to apear in.

The follow works for some rows but not all? I get #Name for the columns that don't provide the correct result.

=IF(F4*TRUE,F4,IF(G4*TRUE,G4,IF(H4*TRUE,H4,IF(I4*TRUE,I4,IF(J4*TRUE.,J4,IF(K4*TRUE,K4,IF(L4*TRUE,L4,IF(M4*TRUE,M4,IF(N4*TRUE,N3.IF(O4*TRUE,O4))))))))))

I am sure that there would be a more elegant solution... HELP PLEASE. :-)
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
The follow works for some rows but not all? I get #Name for the columns that don't provide the correct result.

=IF(F4*TRUE,F4,IF(G4*TRUE,G4,IF(H4*TRUE,H4,IF(I4*TRUE,I4,IF(J4*TRUE.,J4,IF(K4*TRUE,K4,IF(L4*TRUE,L4,IF(M4*TRUE,M4,IF(N4*TRUE,N3.IF(O4*TRUE,O4))))))))))
The reason for the error is the dot after the highlighted True.

See if this does what you want. If not, please show some sample data as requested. Several rows would be better than one and also tell us what results you want for those rows.

=IFERROR(INDEX(F4:O4,MATCH(TRUE,INDEX(ISNUMBER(F4:O4),0),0)),"")
 
Upvote 0
The reason for the error is the dot after the highlighted True.

See if this does what you want. If not, please show some sample data as requested. Several rows would be better than one and also tell us what results you want for those rows.

=IFERROR(INDEX(F4:O4,MATCH(TRUE,INDEX(ISNUMBER(F4:O4),0),0)),"")


Thanks you.... works fine. :)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top