I am trying to create the following income ranges in a document.
Less than $5000
$5,000 - $9,999
$10,000 - $19,999
$20,000 - $29,999
$30,000 - $39,999
$40,000 - $49,999
$50,000 - $59,999
$60,000 - $69,999
$70,000 and Over
The data set is too large for grouping ranges in a pivot table, so I thought I might add a helper column to the data range directly by adding a column next to the total income field. I then thought to myself, "Self, wouldn't it be great if I could just use a nested IF statement with AND for those ranges that require it and just copy down?"
No such luck. I tried the following formula and do not quite understand what I did wrong. Total income is in column AF and I am just randomly starting with row 702.
=IF(AF702<5000,"Less than $5,000", IF(AND(AF702>=5000,AF702<10000),"$5,000 - $9,999", IF(AND(AF702>=10000,AF702<20000),"$10,000 - $19,999", IF(AND(AF702>=20000,AF702<30000),"$20,000 - $29,999", IF(AND(AF702>=30000,AF702<40000),"$30,000 - $39,999", IF(AND(AF702>=40000,AF702<50000),"$40,000 - $49,999", IF(AND(AF702>=50000,<60000),"$50,000 - $59,999", IF(AND(AF702>=60000,<70000),"$60,000 - $69,999", IF(AF702>=70000,"$70,000 and Over","N/A")))))))))
Does Excel not allow IF statements without the AND to be mixed in with IF(AND statements? What am I doing wrong here?
Any help is appreciated!
Less than $5000
$5,000 - $9,999
$10,000 - $19,999
$20,000 - $29,999
$30,000 - $39,999
$40,000 - $49,999
$50,000 - $59,999
$60,000 - $69,999
$70,000 and Over
The data set is too large for grouping ranges in a pivot table, so I thought I might add a helper column to the data range directly by adding a column next to the total income field. I then thought to myself, "Self, wouldn't it be great if I could just use a nested IF statement with AND for those ranges that require it and just copy down?"
No such luck. I tried the following formula and do not quite understand what I did wrong. Total income is in column AF and I am just randomly starting with row 702.
=IF(AF702<5000,"Less than $5,000", IF(AND(AF702>=5000,AF702<10000),"$5,000 - $9,999", IF(AND(AF702>=10000,AF702<20000),"$10,000 - $19,999", IF(AND(AF702>=20000,AF702<30000),"$20,000 - $29,999", IF(AND(AF702>=30000,AF702<40000),"$30,000 - $39,999", IF(AND(AF702>=40000,AF702<50000),"$40,000 - $49,999", IF(AND(AF702>=50000,<60000),"$50,000 - $59,999", IF(AND(AF702>=60000,<70000),"$60,000 - $69,999", IF(AF702>=70000,"$70,000 and Over","N/A")))))))))
Does Excel not allow IF statements without the AND to be mixed in with IF(AND statements? What am I doing wrong here?
Any help is appreciated!