I have a formula which checks the numbers form Column C PRICE to see what range the number is in and puts the corresponding number Column M PRICE RANGE ID which works great as long as I want to copy to each row. I wanted to create and array so it automatically uses the formula when a row is added however my array never works correctly it only uses the number based on the first row Column C2. My array is in the Column Header. I did try populating the row in my Zap with just the normal formula and it didnt work. Any help is appreciated.
=ARRAYFORMULA(IF(ROW(C1:C)=1,"Price Range ID", IF(ISBLANK(C1:C),"",IF(AND(C2>=1, C2<=150000),1,IF(AND(C2>=150001, C2<=250000), 2, IF(AND(C2>=250001, C2<=350000),3, IF(AND(C2>=350001, C2<=450000),4,IF(AND(C2>=450001, C2<=550000),5,IF(AND(C2>=550001, C2<=650000),5,IF(AND(C2>=6500001, 2<=750000),6,IF(AND(C2>=750001, C2<=900000),7,IF(AND(C2>=900001, C2<=1200000),8,0))))))))))))
RESULTS BELOW *** These should be different based on the corresponding C Column Price
Price Range ID |
5 |
5 |
5 |
5 |
5 |
5 |
5 |
5 |
5 |
5 |