Return the TXT in colG if colA is.....

ermccarthy

Board Regular
Joined
Feb 15, 2002
Messages
224
I have a large table of data on my worksheet. I need a formula that will pull the Value of column G (text), of the row that in column A has "o1". The good news is, there will only ever be 1 "o1" value on the worksheet in column A. The bad news is, I can not sort the data on this worksheet (so vlookup will not work)

I have a number of these codes in column A to prioritize items on the worksheet. We use o1 to o5, d1 to d5, f1 to f5, and c1 to c5. So I will use this formula often!!

Thanks!!
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I have a large table of data on my worksheet. I need a formula that will pull the Value of column G (text), of the row that in column A has "o1". The good news is, there will only ever be 1 "o1" value on the worksheet in column A. The bad news is, I can not sort the data on this worksheet (so vlookup will not work)

I have a number of these codes in column A to prioritize items on the worksheet. We use o1 to o5, d1 to d5, f1 to f5, and c1 to c5. So I will use this formula often!!

Thanks!!
When looking for "exact" matches the data DOES NOT need to be sorted for VLOOKUP.

So, try using VLOOKUP!

=VLOOKUP("o1",A:G,7,0)

Or...

=INDEX(G:G,MATCH("o1",A:A,0))
 
Upvote 0
I have a large table of data on my worksheet. I need a formula that will pull the Value of column G (text), of the row that in column A has "o1". The good news is, there will only ever be 1 "o1" value on the worksheet in column A. The bad news is, I can not sort the data on this worksheet (so vlookup will not work)

I have a number of these codes in column A to prioritize items on the worksheet. We use o1 to o5, d1 to d5, f1 to f5, and c1 to c5. So I will use this formula often!!

Thanks!!

If there is only one occurrence of a criterion of interest, try...
Code:
=LOOKUP(9.99999999999999E+307,1/(A2:A100="o1"),G2:G100)

If there are multiple occurrences...

I2: o1

I3:
Code:
=COUNTIF(A2:A100,I2)

I5, control+shift+enter, not just enter, and copy down:
Code:
=IF(ROWS($I$5:I5)<=$I$3,INDEX($G$2:$G$100,
     SMALL(IF($A$2:$A$100=$I$2,ROW($G$2:$G$100)-ROW($G$2)+1),
       ROWS($I$5:I5))),"")
 
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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