#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default vlookup count?

Hi. I am building a report sheet that looks at other workbooks for
information and gives statistics. The other workbooks are exports from an
Oracle database.

In the exported sheets, I need to check that the first column = "IWS", the
second column - a date cell - is between two dates (normally the previous
month, and the third column says "Approved", and count the rows that fall
into this category.. There's other bits to take into account in the other
workbooks, like it being Complete rather than Approved, and if it's overdue
or due within 30 days of being requested, but if I can get this formula setup
correctly I can hopefully figure the rest.

Any help is very much appreciated. I don't mind if I need more than one
formula working on each other to give me the count as they can be on hidden
sheets in the Report worksheet and I can make a front sheet that has all the
count values.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default vlookup count?

What you are looking for is SUMPRODUCT...

=SUMPRODUCT(--($A$2:$A$10000="AWS"),--($B$2:$B$10000=From
Date),--($B$2:$B$10000<=To Date),--($C$2:$C$10000="Approved"))

Couple things to note...

You MUST select a range.. 2 - 10000 in the above. It will not work if you do
A:A...

All ranges must be the same size.. can't look at 2 - 500 in one of them...

the -- before the ( means return a 0 or 1 for each row I'm looking at, with
1 meaning it meets, 0 meaning it does not.

So.. for every cell that meets all of the above, the result is 1*1*1*1, or, 1.

So, the result will be the count of rows that meet the above.

If you wanted to get a sum, let's say, total Revenue for that, you would not
include the -- for the summed field. Thsi way, you'd have, say, 1*1*1*1*500,
or 500!

Then it would be like a sumif rather than a countif.

"Fluke" wrote:

Hi. I am building a report sheet that looks at other workbooks for
information and gives statistics. The other workbooks are exports from an
Oracle database.

In the exported sheets, I need to check that the first column = "IWS", the
second column - a date cell - is between two dates (normally the previous
month, and the third column says "Approved", and count the rows that fall
into this category.. There's other bits to take into account in the other
workbooks, like it being Complete rather than Approved, and if it's overdue
or due within 30 days of being requested, but if I can get this formula setup
correctly I can hopefully figure the rest.

Any help is very much appreciated. I don't mind if I need more than one
formula working on each other to give me the count as they can be on hidden
sheets in the Report worksheet and I can make a front sheet that has all the
count values.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default vlookup count?

Worked perfectly. Thank you!!

"Sean Timmons" wrote:

What you are looking for is SUMPRODUCT...

=SUMPRODUCT(--($A$2:$A$10000="AWS"),--($B$2:$B$10000=From
Date),--($B$2:$B$10000<=To Date),--($C$2:$C$10000="Approved"))

Couple things to note...

You MUST select a range.. 2 - 10000 in the above. It will not work if you do
A:A...

All ranges must be the same size.. can't look at 2 - 500 in one of them...

the -- before the ( means return a 0 or 1 for each row I'm looking at, with
1 meaning it meets, 0 meaning it does not.

So.. for every cell that meets all of the above, the result is 1*1*1*1, or, 1.

So, the result will be the count of rows that meet the above.

If you wanted to get a sum, let's say, total Revenue for that, you would not
include the -- for the summed field. Thsi way, you'd have, say, 1*1*1*1*500,
or 500!

Then it would be like a sumif rather than a countif.

"Fluke" wrote:

Hi. I am building a report sheet that looks at other workbooks for
information and gives statistics. The other workbooks are exports from an
Oracle database.

In the exported sheets, I need to check that the first column = "IWS", the
second column - a date cell - is between two dates (normally the previous
month, and the third column says "Approved", and count the rows that fall
into this category.. There's other bits to take into account in the other
workbooks, like it being Complete rather than Approved, and if it's overdue
or due within 30 days of being requested, but if I can get this formula setup
correctly I can hopefully figure the rest.

Any help is very much appreciated. I don't mind if I need more than one
formula working on each other to give me the count as they can be on hidden
sheets in the Report worksheet and I can make a front sheet that has all the
count values.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Count with Vlookup Rbirdie Excel Discussion (Misc queries) 0 March 25th 09 09:01 PM
Count if and Vlookup using a lookupsheet Madduck Excel Discussion (Misc queries) 3 September 25th 07 02:54 AM
VLOOKUP or COUNT IF? Rob-WNS Excel Discussion (Misc queries) 3 October 17th 06 04:42 PM
Using VLOOKUP to count. shakey1181 Excel Discussion (Misc queries) 3 May 12th 06 12:33 PM
count &vlookup marcie Excel Worksheet Functions 4 February 28th 05 02:31 PM


All times are GMT +1. The time now is 07:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"