Good Morning,
I am trying to Sum a combination of cells with IF, AND, INDEX and MATCH.
Individually the statement works. Also when all cells have values the statement sometimes works and sometimes produces a #ref Error..
Examples below.
Scenario:
One table holds values "Front Height 1, 2, 3" and "Front 1, 2 ,3 Width"
The next lot of cells have a formula to set up the values for an INDEX, MATCH to then produce a price from a pricing matrix.
=IF(B2<=0,0,IF(B2<=200,200,IF(B2<=400,400,IF(B2<=600,600,IF(B2<=750,750,IF(B2<=900,900,IF(B2<=1200,1200,IF(B2<=1500,1500,IF(B2<=1800,1800,IF(B2<=2100,2100,IF(B2<=2400,2400,IF(B2<=2700,2700,IF(B2<=3050,3050,"0")))))))))))))
Cell S2 (and beyond) then has the statement that I need to work.
It looks at 2 conditions being S1 = PM_Style01_TextAsh (Which is a table that produces pricing based on a height and width)
and if R2 = Door.
This is what I have that I thought was correct but is not working. I have tried a variety of IFS and SUMIF etc, with varied results non of which I have managed to be correct.
=IF(AND($S$1="PM_Style01_TextAsh",R2="Door"),SUM(INDEX(PM_Style01_TextAsh,MATCH(L2,PM_Style01_TextAshH),MATCH(M2,PM_Style01_TextAshW)),INDEX(PM_Style01_TextAsh,MATCH(N2,PM_Style01_TextAshH),MATCH(O2,PM_Style01_TextAshW),INDEX(PM_Style01_TextAsh,MATCH(P2,PM_Style01_TextAshH),MATCH(Q2,PM_Style01_TextAshW)))))
Thank you for your wisdom
Chief.
I am trying to Sum a combination of cells with IF, AND, INDEX and MATCH.
Individually the statement works. Also when all cells have values the statement sometimes works and sometimes produces a #ref Error..
Examples below.
Scenario:
One table holds values "Front Height 1, 2, 3" and "Front 1, 2 ,3 Width"
The next lot of cells have a formula to set up the values for an INDEX, MATCH to then produce a price from a pricing matrix.
=IF(B2<=0,0,IF(B2<=200,200,IF(B2<=400,400,IF(B2<=600,600,IF(B2<=750,750,IF(B2<=900,900,IF(B2<=1200,1200,IF(B2<=1500,1500,IF(B2<=1800,1800,IF(B2<=2100,2100,IF(B2<=2400,2400,IF(B2<=2700,2700,IF(B2<=3050,3050,"0")))))))))))))
Cell S2 (and beyond) then has the statement that I need to work.
It looks at 2 conditions being S1 = PM_Style01_TextAsh (Which is a table that produces pricing based on a height and width)
and if R2 = Door.
This is what I have that I thought was correct but is not working. I have tried a variety of IFS and SUMIF etc, with varied results non of which I have managed to be correct.
=IF(AND($S$1="PM_Style01_TextAsh",R2="Door"),SUM(INDEX(PM_Style01_TextAsh,MATCH(L2,PM_Style01_TextAshH),MATCH(M2,PM_Style01_TextAshW)),INDEX(PM_Style01_TextAsh,MATCH(N2,PM_Style01_TextAshH),MATCH(O2,PM_Style01_TextAshW),INDEX(PM_Style01_TextAsh,MATCH(P2,PM_Style01_TextAshH),MATCH(Q2,PM_Style01_TextAshW)))))
Thank you for your wisdom
Chief.