Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Lookup and count in the same formula

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)),F ALSE)) but it's just
returning 0. Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,522
Default Lookup and count in the same formula

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

"MISSY371" wrote in message
...
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)),F ALSE)) but it's just
returning 0. Any suggestions?


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
lookup count Antonio Excel Discussion (Misc queries) 3 May 26th 06 03:39 PM
lookup and count DRvfr Excel Discussion (Misc queries) 1 December 23rd 05 10:48 PM
Formula to lookup Multiple Column Text and then Count Result ShelbyMan Excel Worksheet Functions 2 August 22nd 05 01:43 AM
count in a lookup ? chrisrowe_cr Excel Discussion (Misc queries) 0 July 20th 05 03:06 PM
Count and Lookup Ginger Excel Worksheet Functions 8 December 28th 04 08:56 PM


All times are GMT +1. The time now is 05:15 PM.

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

About Us

"It's about Microsoft Excel"