View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default I need to scan a column

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Vercingetorix.XIII" wrote in
message ...
Yes T, The first formulas worked beautifully, thank you......

"T. Valko" wrote:

I'm assuming page1 and page2 mean Sheet1 and Sheet2.

look on page2 b1-B100 for less than 6 months old


Assuming that B1:B100 contain numbers like 1, 2, 3, etc

=SUMPRODUCT(--(Sheet2!A1:A100="name"),--(Sheet2!B1:B100<""),--(Sheet2!B1:B100<6),Sheet2!C1:C100)

If there will not be any empty cells within the range Sheet2!B1:B100 then
you can eliminate one of the arrays:

=SUMPRODUCT(--(Sheet2!A1:A100="name"),--(Sheet2!B1:B100<6),Sheet2!C1:C100)

Empty cells evaluate as 0 and 0 is <6.

--
Biff
Microsoft Excel MVP


"Vercingetorix.XIII" wrote
in
message ...
I need to scan a column on a second page and look for a name, then scan
another column on the second page and check for how many months it has
been
(less than)and if the criteria is met to add the totals in another
column
from the second page and put it in a cell on the first page.

So, for example I am on page1 abd I need to look on page2 in A1 - A100
for
a
name, when it finds the name I need to look on page2 b1-B100 for less
than
6
months old and when it is found to add the totals on page2 c1-c100 and
out
the total into cell a1 on page 1.

Hope this make sense. Thank you in advance.