Strange Request - Possible If Function Formula

snaplink22

Board Regular
Joined
Jul 6, 2018
Messages
129
I'm looking for a formula that will allow me to multiple one cell by another cell, but if the cell to the right of that one has data then that cell is the one to be multiplied. Here's an example of what I'm hoping to accomplish:

A1 - 100
D1 - $1.00
E1 - =A1*D1

However, if cell B1 is populated I want cell E1 to multiple by the value in B1 versus A1:

A1 - 100
B1 - 150
D1 - $1.00
E1 - =B1*D1

Ideally, I would like to repeat this step all the way up to cell C1.

I'm assuming this is a simple If function, but I can't see to find the right combination.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
One way:
Code:
=IF(ISNUMBER(C1),C1*D1,IF(ISNUMBER(B1),B1*D1,A1*D1))
 
Upvote 0
Hi,

Another way:


Book1
ABCDE
11001501150
Sheet127
Cell Formulas
RangeFormula
E1=LOOKUP(9.99999999999999E+307,A1:C1)*D1
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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