cost according to square foot ????

RoyS

New Member
Joined
Aug 5, 2010
Messages
37
What am i doing wrong? Finding cost in a range of Sq. Ft. sizes.
If x is < 32sq ft but > 16 sq ft then $16.00
if x is > 8sq ft but < 16 sq ft then $12.00
if x is > 4sq ft but < 8 sq ft then $10.00
if x is > 0 sq ft but < 4 sq ft then $6.00

What is wrong in my formula?
=IF(E4>16,"$16",IF(E4>8<=16,"$12",IF(E4>4<=8,"$10",IF(E4>0<=4,"$6",""))))

Thanks - Roy
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
For instance

=IF(E4>16,16,IF(E4>8,12,IF(E4>4,10,IF(E4>0,6,""))))
 
Upvote 0
untested:
=IF(E4>16,"$16",IF(E4>8,"$12",IF(E4>4,"$10",IF(E4>0,"$6",""))))
though ifyou need to do calculatiopn with the result, lose the quotes and the $ symbols:
=IF(E4>16,16,IF(E4>8,12,IF(E4>4,10,IF(E4>0,6,""))))
and format the result as currency.
 
Upvote 0
wigi - thank you. I am open to suggestions on a more meaning full title. Thanks again.
 
Upvote 0
wigi - thank you. I am open to suggestions on a more meaning full title. Thanks again.

Your topic title is not too bad, the message in my signature is a general one and not about your title. Although the question marks can be removed :-)
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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