Please i need your help to create formula

mikie1881

New Member
Joined
Jul 27, 2020
Messages
20
Office Version
  1. 2013
Platform
  1. Windows
I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%.

Thank you in advance

Michell
 
So cell B9 should be =IF(B7=1,B8*0.1,IF(B7=2,B8*0.2,IF(B7=3,B8*0.3,"ERROR: Cell B7 is not a 1, 2, or 3.")))

Or, you could just make the formula in cell B9 to be =B7/10*B8 That would let you enter any value in B7, and get 10% of the entry.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
So it's pretty much what Tarver said, but change b1 to b7 as below:

If(b7=1, b8*0.1, if b7=2, b8*0.2, if b7=3, b8*0.3, "Error - check if B7 is 1,2 or 3")))
 
Upvote 0
If(b7=1, b8*0.1, if b7=2, b8*0.2, if b7=3, b8*0.3, "Error - check if B7 is 1,2 or 3")))

Hi M.
No matter what i do i get this error message .
 

Attachments

  • Untitled-1.psd.jpg
    Untitled-1.psd.jpg
    63.4 KB · Views: 6
Upvote 0
Are you starting the formula with an equal sign (=)?
 
Upvote 0
yes , i try to use google exls docs and when i change to >> =If(b7=1, b8*0.1, if (b7=2, b8*0.2, if (b7=3, b8*0.3, "Error - check if B7 is 1,2 or 3"))) then on google works but still not works on excell !!
 
Upvote 0
Did the formula from post#6 work for you?
Also what is the separator you normally use in a formula, is it a comma or semi-colon?
 
Upvote 0
Did the formula from post#6 work for you?
Also what is the separator you normally use in a formula, is it a comma or semi-colon?

Only when open parentheses before B7 then works on google xls docs, on microsoft excel no works, about separator i use comma , is this the problem ?
 
Upvote 0
If you normally use a comma then that's not the problem.
These work for me
+Fluff New.xlsm
ABC
5
61.6
721.6
881.6
Data
Cell Formulas
RangeFormula
C6C6=(B7*B8*0.1)
C7C7=B7*B8*0.1
C8C8=IF(B7=1,B8*0.1,IF(B7=2,B8*0.2,IF(B7=3,B8*0.3,"Error - check if B7 is 1,2 or 3")))
 
Upvote 0
If you normally use a comma then that's not the problem.
These work for me
+Fluff New.xlsm
ABC
5
61.6
721.6
881.6
Data
Cell Formulas
RangeFormula
C6C6=(B7*B8*0.1)
C7C7=B7*B8*0.1
C8C8=IF(B7=1,B8*0.1,IF(B7=2,B8*0.2,IF(B7=3,B8*0.3,"Error - check if B7 is 1,2 or 3")))


Inspired from your question about comma or semicolon i change on option to system separator and WORKS perfect ! Thank you again.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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