Hello everyone. First post here.
I learned how to write a formula from this forum a while back and I use it in several places in a spreadsheet. I've recently started a new data set for 2013 and I noticed something odd.
I have several ranges that I reference in it. Basically what it's supposed to do is give me the number of unique items (ItemNumber) that were received (DateReceived) in Jan of 2013 for location West (Location). This formula looks at a Month column with names in the format of Jan, Feb, Mar thus the --(TEXT(DateReceived,"Mmm")=$A89). Looking at the table here I should get 4. But what I'm getting instead is 3.25 or 3 if I decrease the decimal. I don't follow why this is happening. I should always get a whole number shouldn't I? I am using the value of this formula for other calulations so it is causing some issues with that. I evaluated the formula and it seems to be working. At least I'm not getting any errors.
Hoping someone can provide some insight to this.
=SUMPRODUCT(--(DateReceived<>""),--(TEXT(DateReceived,"Mmm")=$A89),--(YEAR(DateReceived)=2013)
,--(Location="West")/COUNTIF(ItemNumber,ItemNumber&""))
Item# Date Received Location
9729 12/5/2012 West
9938 12/13/2012 West
9939 12/13/2012 West
8354 1/9/2013 West
0315 1/14/2013 West
0316 1/14/2013 West
0372 1/15/2013 West
I learned how to write a formula from this forum a while back and I use it in several places in a spreadsheet. I've recently started a new data set for 2013 and I noticed something odd.
I have several ranges that I reference in it. Basically what it's supposed to do is give me the number of unique items (ItemNumber) that were received (DateReceived) in Jan of 2013 for location West (Location). This formula looks at a Month column with names in the format of Jan, Feb, Mar thus the --(TEXT(DateReceived,"Mmm")=$A89). Looking at the table here I should get 4. But what I'm getting instead is 3.25 or 3 if I decrease the decimal. I don't follow why this is happening. I should always get a whole number shouldn't I? I am using the value of this formula for other calulations so it is causing some issues with that. I evaluated the formula and it seems to be working. At least I'm not getting any errors.
Hoping someone can provide some insight to this.
=SUMPRODUCT(--(DateReceived<>""),--(TEXT(DateReceived,"Mmm")=$A89),--(YEAR(DateReceived)=2013)
,--(Location="West")/COUNTIF(ItemNumber,ItemNumber&""))
Item# Date Received Location
9729 12/5/2012 West
9938 12/13/2012 West
9939 12/13/2012 West
8354 1/9/2013 West
0315 1/14/2013 West
0316 1/14/2013 West
0372 1/15/2013 West