Value Return based on other cells?

Sunshine8790

Board Regular
Joined
Jun 1, 2021
Messages
86
Office Version
  1. 365
Platform
  1. Windows
In my table, columns A through E is the original data I have, where D is blank at the moment.
D and E are where I need the formulas.

M through Q is the new data (to be pasted fresh weekly), where P is the column with the info I need retrieved, based on where the data in Column A matches that of column M.

So for instance -
If the data in cell A1 matches any of the cells in column M, I want the formula to retrieve the data in the cell from column O on whatever row the match in M was.

(So if A1 is 000001, and 000001 is also found in cell M23, I want the formula to return the value in cell O23).
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
will there only be 1 match likely , or could there be many matches for A1 000001 in M column

=index($O$1:$O$100000, Match( $A1, $M$1:$M$100000, 0))


although you said
where P is the column with the info I need retrieved,
BUT then when on to give an example
and 000001 is also found in cell M23, I want the formula to return the value in cell O23).
SO O and not P
 
Upvote 0
although you said
where P is the column with the info I need retrieved,
BUT then when on to give an example
and 000001 is also found in cell M23, I want the formula to return the value in cell O23).
SO O and not P
 
Upvote 0
OK
=index($O$1:$O$100000, Match( $A1, $M$1:$M$100000, 0))

return something from the same row in column O , where A1 matches something in column M
 
Upvote 1
Solution
so its all working for you ????
 
Upvote 1
OK
=index($O$1:$O$100000, Match( $A1, $M$1:$M$100000, 0))

return something from the same row in column O , where A1 matches something in column M
PERFECT! This worked, Thank you so much!! :)
 
Upvote 0
if it cannot find a match - it will return N/A error

you can use
=IFERROR ( index($P$1:$P$100000, Match( $A1, $M$1:$M$100000, 0)) ,"")
which will just leave a blank cell
OR
=IFERROR ( index($P$1:$P$100000, Match( $A1, $M$1:$M$100000, 0)) ,"No Match")
 
Upvote 1

Forum statistics

Threads
1,221,418
Messages
6,159,793
Members
451,589
Latest member
Harold14

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