Find value in third column

amit96

New Member
Joined
Feb 15, 2022
Messages
27
Office Version
  1. 2013
Platform
  1. Windows
Hello everyone!

how can i find the value in -

1. IF in column AA the value in equal to the value in cell A1
2. AND in column AR the value is equal to "usd" or"euro" or"nok"
3. GIVE me the value in that line from column AC
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
you can use an ARRAY , OR - which will try and bring back 3 values

I'm assuming "usd" or"euro" or"nok" will not ALL match with AA in A1

=INDEX(AC:AC,MATCH(A1&{"USD","EURO","NOK"},AA:AA&AR:AR,0))
enter with Control +Shift + Enter - in 2013 version

OR

Each match separately
=INDEX(AC:AC,MATCH(A1&"USD",AA:AA&AR:AR,0))
=INDEX(AC:AC,MATCH(A1&"EURO",AA:AA&AR:AR,0))
=INDEX(AC:AC,MATCH(A1&"NOK",AA:AA&AR:AR,0))

So with the Nested - IFERROR

=IFERROR( INDEX(AC:AC,MATCH(A1&"USD",AA:AA&AR:AR,0)),
IFERROR(INDEX(AC:AC,MATCH(A1&"EURO",AA:AA&AR:AR,0)),
IFERROR(INDEX(AC:AC,MATCH(A1&"NOK",AA:AA&AR:AR,0),"Not Found")))
 
Upvote 0
sorry about that
=IFERROR( INDEX(AC:AC,MATCH(A1&"USD",AA:AA&AR:AR,0)),
IFERROR(INDEX(AC:AC,MATCH(A1&"EURO",AA:AA&AR:AR,0)),
IFERROR(INDEX(AC:AC,MATCH(A1&"NOK",AA:AA&AR:AR,0),"Not Found")))
Missed a bracket out
This works
=IFERROR(INDEX(AC:AC,MATCH(A1&"USD",AA:AA&AR:AR,0)),IFERROR(INDEX(AC:AC,MATCH(A1&"EURO",AA:AA&AR:AR,0)),IFERROR(INDEX(AC:AC,MATCH(A1&"NOK",AA:AA&AR:AR,0)),"Not Found")))

BUT I would not use complete column references like AA , AR etc
I would use the range the data is in , or slightly more if the data is expanding
like
=IFERROR(INDEX(AC2:AC1000,MATCH(A1&"USD",AA2:AA1000&AR2:AR1000,0)) etc etc

as it slowed excel down on my Macbook quite a lot



Book5
AYZAAABACADAQAR
1fredAC5
2johnAC2usd
3harryAC4jillAC3euro
4harryAC4nok
5maryAC9fredAC5usd
6ChrisAC6euro
7paulNot FoundMarkAC7nok
8JanetAC8usd
9MaryAC9euro
10
11
Sheet2
Cell Formulas
RangeFormula
Y1,Y7,Y5,Y3Y1=IFERROR(INDEX(AC:AC,MATCH(A1&"USD",AA:AA&AR:AR,0)),IFERROR(INDEX(AC:AC,MATCH(A1&"EURO",AA:AA&AR:AR,0)),IFERROR(INDEX(AC:AC,MATCH(A1&"NOK",AA:AA&AR:AR,0)),"Not Found")))
 
Upvote 0

Forum statistics

Threads
1,215,648
Messages
6,126,007
Members
449,280
Latest member
Miahr

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