Selecting a One cell from another when condition ismet

mike4777

Board Regular
Joined
Apr 12, 2011
Messages
124
I am trying to search a row of numbers c2:bk2 for the number that displays in cell q31. In cells c1:bk1 are different numbers that are correlated with the numbers in cells b1:b30. Ultimately I need the number in row 1 that correlates with the number in row 2 from where the search function is looking

A B C D
1 70 71 72 73
2 3 4 6

So If q31 was 5 then I would need to look in row 2 to find 5 and display the number above it in row one. In this case 5 does not exist so I would need the search function to move on the number 6 and display what is above that... 73

Thanks for your help
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
If you can sort Row 2 from highest to lowest you can use
Code:
=INDEX(C1:BK1),,MATCH(Q31,C2:BK2,-1)),

lenze
 
Upvote 0
the row cannot be sorted... the data is part of a information decryption program... it is place sensitive
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,142
Members
452,892
Latest member
JUSTOUTOFMYREACH

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