Multiply after comparing columns for match

maxzzen

New Member
Joined
Mar 30, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

Is it possible to create a formula that automatically compares the values from Column1 with Column3 and if it matches does a multiplication by 1.5 in Output1.

The same goes for Column1 with Coulmn4 but in this case automatically mulitplies by 2 in Output2 instead.

What I´m after is that the Green table checks for matches in the Blue table and from that decides which multiplication formula to be used, hopefully I´ve explained it somewhat clearly for you!

Output1 should ONLY multiply the "Yoghurt" row value from Column2 by 1,5.
Output2 should ONLY multiply the "Milk" row value from Column2 by 2.
 

Attachments

  • excel1212.png
    excel1212.png
    12.1 KB · Views: 20

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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