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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,215,475
Messages
6,125,028
Members
449,205
Latest member
Eggy66

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