Match 3 criterias from table 2 and return "amount" & "stage"

powr_potato

New Member
Joined
Apr 18, 2017
Messages
7
Hi All,

May i kindly get your help on an excel formula? I am trying to match 3 criteria between table 1 and table 2, namely: "Order", "Amount" & "Stage" and return the values to Col D & E respectively. For example, if Table 1 Row 3 has "OrderA", Amount of "5" & Stage is "sent" and Table 2 has the same criteria, it should return Amount of "5" in Column D. Really appreciate if i could get your help on this.

ABCDEFGH
Table1Table2
OrderAmountStageReturn Amount if same as table 2Return Stage if same as table 2OrderAmountStage
OrderA5SentOrderF6Handed
OrderB4HandedOrderF2Handed
OrderA4SentOrderF1Handed
OrderA2HandedOrderA2Sent
OrderC7SentOrderC7On-Hold
OrderC4HandedOrderC4Handed
OrderC3SentOrderC3Handed
OrderG1HandedOrderD1On-Hold
OrderF2HandedOrderE8On-Hold
OrderA5Sent
OrderB4Handed
OrderA4Sent

<tbody>
</tbody>

Thank You.

<colgroup><col span="2"><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
d: =IF(AND(A3=F3,B3=G3,C3=H3),B3,"")
E: =IF(AND(A3=F3,B3=G3,C3=H3),C3,"")
 
Upvote 0
Thanks Eduzs, however, it doesn't work.. I have tried on the first row. In table 1 & 2, there is "OrderA" , Amount of "5" and Stage "Sent", however it doesn't return a value to me.
 
Upvote 0
Hi All i would like to edit my question. On table one there is Order & Amount. I would like to use an excel formula to fill in column C with "Stage" values if the "Order" & "Amount" matches table 2. Would really appreciate if anyone can help me on this...
ABCDEFGH
Table1Table2
OrderAmountReturn Stage ValueOrderAmountStage
OrderA5OrderF6Handed
OrderB4OrderF2Handed
OrderA4OrderF1Handed
OrderA2OrderA2Sent
OrderC7OrderC7On-Hold
OrderC4OrderC4Handed
OrderC3OrderC3Handed
OrderG1OrderD1On-Hold
OrderF2OrderE8On-Hold
OrderA5Sent
OrderB4Handed
OrderA4Sent

<tbody>
</tbody>
 
Upvote 0
I have returned the answer in 2 stages
- column C tells you "which row number in table 2 has the same order # and amount (i.e in columns F and G ) as the order # and amount in table2 (columns A and B)


- column D tells you the relevant stage from that row (ie value in column H)

column C formula =MATCH($A2&$B2,$F$2:$F$13&$G$2:$G$13,0)
column D formula =INDEX(H$2:H$13,MATCH($A2&$B2,$F$2:$F$13&$G$2:$G$13,0))

both formulas are array formulas. so instead of ENTER do CTRL-SHIFT-ENTER so that the formulas end up as {=MATCH($A2&$B2,$F$2:$F$13&$G$2:$G$13,0) } and
{=INDEX(H$2:H$13,MATCH($A2&$B2,$F$2:$F$13&$G$2:$G$13,0))} respectively (do not try to enter the curly brackets yourself )

you don't really need the column C formula .. just the column D one but doing it tht way explains it a bit better.


OrderAmountmatch order and amtreturn stageOrderAmountStage
OrderA510SentOrderF6Handed
OrderB411HandedOrderF2Handed
OrderA412SentOrderF1Handed
OrderA24SentOrderA2Sent
OrderC75On-HoldOrderC7On-Hold
OrderC46HandedOrderC4Handed
OrderC37HandedOrderC3Handed
OrderG1#N/A#N/AOrderD1On-Hold
OrderF22HandedOrderE8On-Hold
OrderA5Sent
OrderB4Handed
OrderA4Sent

<tbody>
</tbody>
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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