LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default How do I lookup a value in a table which has many results?

1. one way:

=SUMPRODUCT(($A$1:$A$6=$A$1)*($B$1:$B$6))

2. another:

=SUM(IF($A$1:$A$6=$A$1;$B$1:$B$6))
(array-enter this formula i.e. CTRL+SHIFT+ENTER)

adjust yr ranges to suit

HIH


On 3 Lis, 07:47, Mallymoo wrote:
I have a table of medications in one column and how many of each medication
that has been ordered. Problem is the medications are listed bout 10 times. I
need to lookup the medication and return each result (or sum them).

For example:
Panadol 2
Panadol 20
Panadol 5
Nurofen 4
Nurofen 16
Nurofen 10

I want to look up Panadol and sum how many panadols have been ordered.
Answer would be 27. Then I want to be able to do the same to Nurofen.

If this is possible, could someone please let me know.
Much appreciated.


 
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
Counting results from a lookup &e7 Excel Worksheet Functions 1 July 29th 09 12:46 PM
Lookup Results UlvaZell Excel Discussion (Misc queries) 1 September 26th 08 03:48 AM
Lookup with Multiple results Quovardis via OfficeKB.com Excel Worksheet Functions 7 October 12th 07 06:28 AM
Inconsistent results with =LOOKUP? watkincm Excel Worksheet Functions 2 May 31st 06 08:21 PM
Lookup and List Results DSCAVOTTO Excel Worksheet Functions 5 April 21st 06 08:59 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"