# Formula Issue

#### markb1009

##### New Member
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

#### Joe4

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:

#### jproffer

##### Well-known Member
Something like this:

Excel 2013/2016
A
18
210
3142.554

</tbody>
Sheet1

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

</tbody>

<tbody>
</tbody>

Last edited:

#### markb1009

##### New Member
Thanks Joe, this works, how can I leave the cell blank if there is no 6 or 8 chosen in the others?

#### Joe4

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,""))``

Thanks for help

You are welcome!

#### markb1009

##### New Member
Thank you for all the help, everything works perfect.

1,081,984
Messages
5,362,554
Members
400,679
Latest member
alecalec202

### This Week's Hot Topics

• populate from drop list with multiple tables
Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
• Find list of words from sheet2 in sheet1 before a comma and extract text vba
Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
• Dynamic Formula entry - VBA code sought
Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...