From: MISSY371 on
Hello,

I need a formula that looks up a value in row 1 on sheet2 and returns the
count of a range in the colmun that matches the lookup in sheet1. For
example:

Sheet2 - Feed Sheet
Smithfield
RSM John Doe
ASM Jenn Smith
ASM2 Brian Smith

So Smithfield has 1 RSM and 2 ASMs

Sheet1
RSM ASM
Smithfield 1 2

So I want a formula to return the count of how many RSM's and ASM's are in a
specific location. I have this:
=(HLOOKUP(A1,Sheet2!A1:A6,(COUNTA(Sheet2!A5:A6)),FALSE)) but it's just
returning 0. Any suggestions?

From: Don Guillett on
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett(a)gmail.com
"MISSY371" <MISSY371(a)discussions.microsoft.com> wrote in message
news:DDF02B48-D654-4154-A76B-D14E2AB84A32(a)microsoft.com...
> Hello,
>
> I need a formula that looks up a value in row 1 on sheet2 and returns the
> count of a range in the colmun that matches the lookup in sheet1. For
> example:
>
> Sheet2 - Feed Sheet
> Smithfield
> RSM John Doe
> ASM Jenn Smith
> ASM2 Brian Smith
>
> So Smithfield has 1 RSM and 2 ASMs
>
> Sheet1
> RSM ASM
> Smithfield 1 2
>
> So I want a formula to return the count of how many RSM's and ASM's are in
> a
> specific location. I have this:
> =(HLOOKUP(A1,Sheet2!A1:A6,(COUNTA(Sheet2!A5:A6)),FALSE)) but it's just
> returning 0. Any suggestions?
>

 | 
Pages: 1
Prev: Vertical Header in Excel
Next: Split concatenation