I hesitate to ask this question, because I am almost embarassed that I am having trouble with this array formula. I searched through the previous postings, but cannot find a parallel situation for mine. Most all of my array formulas seek results of all the true conditions and are rather easy.
I have pasted the formula below. First, let me explain the data. I am very limited on data fields that our mainframe will export, but it is accurate and consistent. On this spreadsheet, I only have data from 2007 thru 2009 (3 years almost) of units sold.
DATA:
$C12 = 501.00, $D12 = 1,000.00 (to get a range of Gross Profit, and there are about 14 ranges.
$F$1 is a Validation Cell with a list. The list is 2007, 2008, 2009 and the word "ALL".
When the User selects ANY of the YEARS from the Validation Cell dropdown, It works perfect. But what I need is a way for it to work on "ALL". To correctly select "ALL" the data and give the correct answers, all I need to do is eliminate is " IF(YEARSOLD=$F$1,GROSS) " from the formula and then the formula works on ALL the data (from the "RED" store in this case).
I know (or I think I know) I need an IF, THEN, ELSE type of formula but just can't seem to get the syntax of it correct. I have tried many variations and can get close but when I select "ALL" from the dropdown I get a 0 (numeric zero).
The original formula, which work when any of the YEARS are selected from the dropdown validation list is:
=SUM(IF(STORE="RED",IF(GROSS>=$C12,IF(GROSS<=$D12,IF(SOURCE="AUC",IF(SALETYPE="retail",IF(YEARSOLD=$F$1,GROSS)))))))
This is the closest I have come to an answer:
=IF((YEARSOLD="ALL"),(SUM(IF(STORE="RED",IF(GROSS>=$C9,IF(GROSS<=$D9,IF(SOURCE="AUC",IF(SALETYPE="retail",1))))))),((SUM(IF(STORE="RED",IF(GROSS>=$C9,IF(GROSS<=$D9,IF(SOURCE="AUC",IF(SALETYPE="retail",IF(YEARSOLD=$F$1,1)))))))))) but it will still not work on "ALL". It does still grab the YEARS properly, however.
What am I missing?
I truly appreciate your help (and your patience) with this and thank you all in advance.
Creeker69
I have pasted the formula below. First, let me explain the data. I am very limited on data fields that our mainframe will export, but it is accurate and consistent. On this spreadsheet, I only have data from 2007 thru 2009 (3 years almost) of units sold.
DATA:
$C12 = 501.00, $D12 = 1,000.00 (to get a range of Gross Profit, and there are about 14 ranges.
$F$1 is a Validation Cell with a list. The list is 2007, 2008, 2009 and the word "ALL".
When the User selects ANY of the YEARS from the Validation Cell dropdown, It works perfect. But what I need is a way for it to work on "ALL". To correctly select "ALL" the data and give the correct answers, all I need to do is eliminate is " IF(YEARSOLD=$F$1,GROSS) " from the formula and then the formula works on ALL the data (from the "RED" store in this case).
I know (or I think I know) I need an IF, THEN, ELSE type of formula but just can't seem to get the syntax of it correct. I have tried many variations and can get close but when I select "ALL" from the dropdown I get a 0 (numeric zero).
The original formula, which work when any of the YEARS are selected from the dropdown validation list is:
=SUM(IF(STORE="RED",IF(GROSS>=$C12,IF(GROSS<=$D12,IF(SOURCE="AUC",IF(SALETYPE="retail",IF(YEARSOLD=$F$1,GROSS)))))))
This is the closest I have come to an answer:
=IF((YEARSOLD="ALL"),(SUM(IF(STORE="RED",IF(GROSS>=$C9,IF(GROSS<=$D9,IF(SOURCE="AUC",IF(SALETYPE="retail",1))))))),((SUM(IF(STORE="RED",IF(GROSS>=$C9,IF(GROSS<=$D9,IF(SOURCE="AUC",IF(SALETYPE="retail",IF(YEARSOLD=$F$1,1)))))))))) but it will still not work on "ALL". It does still grab the YEARS properly, however.
What am I missing?
I truly appreciate your help (and your patience) with this and thank you all in advance.
Creeker69