Multiply ifs

Giancar

Board Regular
Joined
Nov 29, 2017
Messages
52
Hi everyone,

I was checking previous posts but I am not able to amend the formula in the way I wished.
So I have following table

1st week1000
2nd week2000
3rd week5000

<tbody>
</tbody>

In C1 I need a formula that multiply B1*0.5 if A1is "1st week", if A1 is 2nd week multiply B1*0.35 and if A1 is "3rd week", multiply B1*0.15

Thank you in advance
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
maybe...

=B2*CHOOSE(MATCH(A2,{"1st Week","2nd Week","3rd Week"},0),0.5,0.35,0.15)
 
Upvote 0
Assuming col A will always contain one of those values,

A​
B​
C​
D​
1​
1st week
1000​
500​
C1: =B1*LOOKUP(A1, {"1st week","2nd week","3rd week"}, {0.5,0.35,0.15})
2​
2nd week
2000​
700​
3​
3rd week
5000​
750​

EDIT: I prefer Weazel's
 
Last edited:
Upvote 0
Well, my bad, both are working, but I have a problem when I drag down.
If I add the formula on specific cells is working, but if i Drag down it is not. What am I doing wrong?
Thx
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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