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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,214,388
Messages
6,119,227
Members
448,878
Latest member
Da9l87

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