If statement

jrabi

Board Regular
Joined
Aug 20, 2010
Messages
143
I have a spreadsheet:

Column A is the location
Column B is dollar sales
Column C is unit sales
Column D is % of dollar sales(b2/(sumB:B)
Column E is the accum of % of dollar sales
Column F I want to apply if E is greater than 0, less than 5, "A" if greater than 5, less than 25, "B", greater than 25, less than 50, "C", greater than 50, less than 75, "D", greater than 75, less than 100, "E".

Cant get started, have this formula:

=IF(E2>0,and IF(E2<=5,"A"))

Any help here and do I have to have the accum column or is there a formula that would sum the accum?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Build a lookup table, and use a lookup formula..

Something like this

Excel Workbook
EFGHI
1Table
225C0A
398E5B
462D25C
59B50D
64A75E
7120???>100100???>100
Sheet1
 
Upvote 0
Yes that would work, I hate lookup tables, someones always deleting them..........
 
Upvote 0
You can hard code the table into the formula...

Build it jast as I posted it, and write the formula as I posted it...

Then while in the formula, highlight the range H2:I7 and press F9
Whala!
 
Upvote 0
Yes that would work, I hate lookup tables, someones always deleting them..........
Well, that sucks! :eeek:

Try it like this...

=IF(E2="","",IF(E2<5,"A",IF(E2<25,"B",IF(E2<50,"C",IF(E2<75,"D",IF(E2<100,"E",""))))))
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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