Column lookups?

brisbane bob

Board Regular
Joined
Aug 9, 2007
Messages
70
If cells A1:A26 contain the letters A thru Z, and up to 4 cells in B2:B26 contain a value, how can I "read off" which letter have a value beneath it, and store the letter/s in, say, cells B27, B28, B29 and B30?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Glove_Man

Well-known Member
Joined
Feb 20, 2005
Messages
578
If you're happy to have a calculation column, in cell c1 put:

=COUNTIF($B$1:B1,"<>"))

and copy it down

In cell B27 Put INDEX($A$1:$A$26,MATCH(1,$C$1:$C$26,0))

In cell B28 Put INDEX($A$1:$A$26,MATCH(2,$C$1:$C$26,0))

etc


Philip
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,990
Messages
5,834,751
Members
430,315
Latest member
bobh63

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
Top