Formula Issue

markb1009

New Member
Joined
Jul 28, 2017
Messages
10
I need a formula which as an example, when A1 is 6, then it multplies A2 by 8.0186 and puts this value in cell A3, however if A1 is 8 then it multiples A2 by 14.2554 and places the value in A3


Thanks Everyone
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Welcome to the Board!

Formula to put in A3:
Code:
=IF(A1=6,A2*8.0186,IF(A1=8,A2*14.2554,"No match"))

It will return "No match" if A1 is not 6 or 8.
You can change that part to return whatever you want, in that case.
 
Last edited:
Upvote 0
Something like this:

Excel 2013/2016
A
18
210
3142.554

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
A3=IF(A1=6,A2*8.0136,IF(A1=8,A2*14.2554,"Neither 6 nor 8"))


<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Oops, I put 8.0136 instead of 8.0186. Sorry about that.
 
Last edited:
Upvote 0
how can I leave the cell blank if there is no 6 or 8 chosen in the others?
Just remove all text between the double-quotes, i.e.
Code:
=IF(A1=6,A2*8.0186,IF(A1=8,A2*14.2554,""))
 
Upvote 0

Forum statistics

Threads
1,214,533
Messages
6,120,076
Members
448,943
Latest member
sharmarick

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