Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

excel formula

Posted on 2011-03-06
5
270 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:Gazza83
  • 2
  • 2
5 Comments
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 250 total points
ID: 35050021
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
 
LVL 6

Accepted Solution

by:
Eric Zwiekhorst earned 250 total points
ID: 35054870
Hi Gazza,

I adapted your spreadsheet, made some changes to the work in progress column to

Please have a look..


Kind regards

Eric
Sun1-1-.xls
0
 
LVL 14

Expert Comment

by:Zack Barresse
ID: 35058286
I'm not sure why you didn't stick to your other thread.....

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
 
LVL 50

Expert Comment

by:barry houdini
ID: 35058486
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
 
LVL 14

Expert Comment

by:Zack Barresse
ID: 35058621
@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

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question