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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
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,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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