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
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,480
Office Version
365
Platform
Windows
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
Joined
Dec 15, 2004
Messages
2,643
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:

markb1009

New Member
Joined
Jul 28, 2017
Messages
10
Thanks Joe, this works, how can I leave the cell blank if there is no 6 or 8 chosen in the others?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,480
Office Version
365
Platform
Windows
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,""))
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
51,480
Office Version
365
Platform
Windows
You are welcome!:)
 

Forum statistics

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

Some videos you may like

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...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top