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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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