Hi
I'm using the following SUMPRODUCT formula (array formula) and it works fine:
{=SUMPRODUCT(--(RIGHT(Journey!$F$4:$F$1067,3)=F4),Journey!$H$4:$H$1067,
SUMIF(OFFSET(SOLD!$J$1,MATCH(LEFT(Journey!$F$4:$F$1067,3),SOLD!$I$2:$I$69,0),),">"&0))}
I need to use in in another part of my workbook and it needs to be in reverse and refers to a couple of different arrays that are the same size but for some reason, it doesn't work:
{=SUMPRODUCT(--(LEFT(Journey!$F$4:$F$1067,3)=F4),Journey!$I$4:$I$1067,
SUMIF(OFFSET(SOLD!$L$1,MATCH(RIGHT(Journey!$F$4:$F$1067,3),SOLD!$K$2:$K$69,0),),">"&0))}
The things I've changed are:
- the RIGHT and LEFT functions which I've switched around
- referring to column I instead of H on the journey sheet in the second formula
- referring to values in column K instead of I in the first sheet and made the appropriate change to the reference in the OFFSET function (changed from column J to L)
Contained in the cells/arrays in the formulas:
- Examples of values in the array Journey!$F$4:$F$1067 are MELSYD, BNEADL, PERDRW, etc. which are a combination of three-letter codes like SYD, PER, MEL, ETC.
- Value in F4 will always be one of three-letter codes like SYD, PER, MEL, etc.
- Columns H and I on the Journey sheet are all percentages.
- Values in SOLD!$K$2:$K$69 and SOLD!$I$2:$I$69 are three letter codes like SYD, PER, MEL, etc and there are numerical values next to each of those values (columns J and L).
For some reason, the changes aren't working. The values in all the arrays noted in the second formula are all of the same type.
I have no idea why it's not working so if anyone could help me out before I start growing my hair back just so I can pull it out again, I'd be very appreciative!
Cheers
I'm using the following SUMPRODUCT formula (array formula) and it works fine:
{=SUMPRODUCT(--(RIGHT(Journey!$F$4:$F$1067,3)=F4),Journey!$H$4:$H$1067,
SUMIF(OFFSET(SOLD!$J$1,MATCH(LEFT(Journey!$F$4:$F$1067,3),SOLD!$I$2:$I$69,0),),">"&0))}
I need to use in in another part of my workbook and it needs to be in reverse and refers to a couple of different arrays that are the same size but for some reason, it doesn't work:
{=SUMPRODUCT(--(LEFT(Journey!$F$4:$F$1067,3)=F4),Journey!$I$4:$I$1067,
SUMIF(OFFSET(SOLD!$L$1,MATCH(RIGHT(Journey!$F$4:$F$1067,3),SOLD!$K$2:$K$69,0),),">"&0))}
The things I've changed are:
- the RIGHT and LEFT functions which I've switched around
- referring to column I instead of H on the journey sheet in the second formula
- referring to values in column K instead of I in the first sheet and made the appropriate change to the reference in the OFFSET function (changed from column J to L)
Contained in the cells/arrays in the formulas:
- Examples of values in the array Journey!$F$4:$F$1067 are MELSYD, BNEADL, PERDRW, etc. which are a combination of three-letter codes like SYD, PER, MEL, ETC.
- Value in F4 will always be one of three-letter codes like SYD, PER, MEL, etc.
- Columns H and I on the Journey sheet are all percentages.
- Values in SOLD!$K$2:$K$69 and SOLD!$I$2:$I$69 are three letter codes like SYD, PER, MEL, etc and there are numerical values next to each of those values (columns J and L).
For some reason, the changes aren't working. The values in all the arrays noted in the second formula are all of the same type.
I have no idea why it's not working so if anyone could help me out before I start growing my hair back just so I can pull it out again, I'd be very appreciative!
Cheers
Last edited: