# excel formula

Have tried the following, although this would be some way off:-

=SUMPRODUCTIF(('Low Volume'!B14:B20000+0>=F3,'Low Volume'!AB14:AB2000)*('Low Volume'!B14:B20000+0<=F4,'Low Volume'!AB14:AB2000))

The formula is for F7 sheet 2 ("Stats Table"), with your help here I should hopefully be able to alter the formula for the rest of the cells.

The formula only needs to work for the lines that fall into the criteria of "Arriving" between the dates to/From in F3:F4 sheet2.

For those 'dates', it then needs to count (AB14:AB2000)

At the moment f6 does half of what I want, in the match function but as I need the Sum function to work in another column "AB" not "B"

Very Similar to my last question but this formula is allot harder.
Sun1.xls
###### Who is Participating?

Hi Gazza,

Kind regards

Eric
Sun1-1-.xls
0

Commented:
Hello Gazza, you don't seem to have anything in column AB but if you did this would sum that column for the relevant dates

=SUMPRODUCT(('Low Volume'!B14:B20000+0>=F3)*('Low Volume'!B14:B20000+0<=F4),'Low Volume'!AB14:AB20000)

regards, barry
0

CEOCommented:

Please post what your values are, as well as what shows as the format.  So select F3, tell us what you see in the formula bar, then what you see in the worksheet - exactly as you see it.  Then do the same for F4.

As for the formula, you shouldn't need the 0+ coercion, as you already have a mathematical operation in there which does that.  I would also recommend you  take a look at the dynamic formula I posted in your other thread.  Like I said there, the results give exactly what you've asked.  Since you think you should be getting another result, please explain how your data set matches the criteria and should be different.

Zack
0

Commented:
Hello Zack

>As for the formula, you shouldn't need the 0+ coercion, as you already have a mathematical operation in there which does that

I don't think that's right. As I said in Gazza's previous question I wouldn't recommend using +0 as my preferred solution......but it does make a difference, if you don't use +0 then the text-formatted dates aren't co-erced, so the formula in the attached spreadsheet here, i.e.

=SUMPRODUCT(('Low Volume'!B14:B20000+0>=F3)*('Low Volume'!B14:B20000+0<=F4))

gives a result of 3....and without the +0s it gives a result of 1

=SUMPRODUCT(('Low Volume'!B14:B20000>=F3)*('Low Volume'!B14:B20000<=F4))

regards, barry
0

CEOCommented:
@Barry, yes, I see what you mean.  My thinking was that the values from the first sheet were already coerced, so they were not seen as text (the preferred method).  So if that hasn't happened, you're absolutely right.

@Gazza: I would still recommend 1) changing the formats on the first sheet to be actual dates, 2) using a dynamic formula, 3) posting values vs. formats.

Zack
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.