Help with another IF THEN

ArtBOM

New Member
Joined
Jan 23, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
How do I write a formula for: IF B<400, THEN (H*L)*150, IF B>400, THEN (H*L)*160. What is this type of formula called?
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
IF B what? B1, B100, ??? You need to write the formula using cell references with the column letter and row number.
For example: =IF(B1<400,H1*L1*150,H1*L1*160)
What happens if the value is =400? In this example, it'll use the latter calculation.

Syntax is: =IF(logical_test,action_if_true,action_if_false)
 
Upvote 0
Solution
Hi,

Assuming you mean <400, and >=400:

Book3.xlsx
BCHL
139990023
Sheet720
Cell Formulas
RangeFormula
C1C1=H1*L1*IF(B1<400,150,160)
 
Upvote 0
IF B what? B1, B100, ??? You need to write the formula using cell references with the column letter and row number.
For example: =IF(B1<400,H1*L1*150,H1*L1*160)
What happens if the value is =400? In this example, it'll use the latter calculation.

Syntax is: =IF(logical_test,action_if_true,action_if_false)
That did it, thank you. I started with =IF(B2<400,H2*L2*150,H2*L2*160) and copied it down the sheet. It worked! Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,579
Members
449,174
Latest member
chandan4057

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