MATCH or LOOKUP?

beckiepops2

New Member
Joined
Feb 14, 2016
Messages
4
Hi! Thank you so much for having this site. Not sure what I would do without all of you!

Here is the data:

-- removed inline image ---


I need to write a function or formula in the RESULT column. But the formula needs to look in the Occasion column and find it's MATCH in the Category column and then when it finds a match, I need it to calculate cost/1000 * Cards Sold.

My data has about 3000 rows, so doing it the way I have done it would not be feasible, that's why I'm hoping there is either a MATCH function or LOOKUP function that can do this instead.

Thank you!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I'm not sure why that happened... but here is the data:
[TABLE="width: 468"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Occasion[/TD]
[TD]Cards Sold[/TD]
[TD]Category[/TD]
[TD]Cost[/TD]
[TD]RESULT[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Anniversary[/TD]
[TD]500000
[/TD]
[TD]Anniversary[/TD]
[TD]11[/TD]
[TD]=((O7/1000)*M7)[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Anniversary[/TD]
[TD]300000[/TD]
[TD]Awards Party[/TD]
[TD]9[/TD]
[TD]=((O7/1000)*M8)[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Anniversary[/TD]
[TD]210356[/TD]
[TD]Baby Shower[/TD]
[TD]13[/TD]
[TD]=((O7/1000)*M9)[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Anniversary[/TD]
[TD]567890[/TD]
[TD]Birthday[/TD]
[TD]4[/TD]
[TD]=((O7/1000)*M10)[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Awards Party[/TD]
[TD]45000[/TD]
[TD]Valentine's Day[/TD]
[TD]8[/TD]
[TD]=((O8/1000)*M11)[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Awards Party[/TD]
[TD]32000[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]=((O8/1000)*M12)[/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD]Baby Shower[/TD]
[TD]1000000[/TD]
[TD] [/TD]
[TD] [/TD]
[TD]=((O9/1000)*M13)
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Hi,
Welcome to the board.

In cell P7 try
Code:
=IF(L7=N7,(O7/1000)*M7,"no match")

paul
 
Upvote 0
Hi,
If each row needs to have the comparison, then the formula will be needed on each row.
in cell P7, use the small square grab handle in the bottom right corner of the cell and copy the formula down.
change the word "no match" to whatever you want.

Paul.
 
Upvote 0
Hi,
Sorry, I misunderstood, the way your data was laid out confused me. I know see that columns L & M extend down to 3000+ and columns N & O are the lookup grid.

Try this in cell P7

Code:
=SUM(INDEX($O$7:$O$12,MATCH(L7,$N$7:$N$12,0))*M7)

Paul.
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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