#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Counting formula

I need a formula to sum on the cells that match a variable in another cell

A B C D E F G H I
1
2 Bo Jim Ron
3 3 2 6
4 1 2 3 4 5 6 ? ? ?

What I need to be able to do is sum the number of columns (A4:F4) that
matches the numbers in G3:I3. So, the sum I'm looking for in G4 is 6 (the
sum of A4:C4) or 6. H4 would sum to 3 and I4 would be 21. Can you help me
please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Counting formula

Try this...

=SUM($A4:INDEX($A4:$F4,G3))

Copy across.

Note that if G3 is an empty cell the formula will sum the *entire* range.

--
Biff
Microsoft Excel MVP


"lawhawg" wrote in message
...
I need a formula to sum on the cells that match a variable in another cell

A B C D E F G H I
1
2 Bo Jim Ron
3 3 2 6
4 1 2 3 4 5 6 ? ? ?

What I need to be able to do is sum the number of columns (A4:F4) that
matches the numbers in G3:I3. So, the sum I'm looking for in G4 is 6
(the
sum of A4:C4) or 6. H4 would sum to 3 and I4 would be 21. Can you help
me
please?



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
Formula / Counting Anna Excel Worksheet Functions 5 July 12th 07 02:38 PM
Counting formula Neil Excel Discussion (Misc queries) 3 June 14th 07 04:20 PM
Counting formula awakening2lite Excel Discussion (Misc queries) 6 June 4th 07 06:26 PM
formula for counting TMF in MN Excel Worksheet Functions 7 October 31st 06 11:48 PM
formula on counting Michael A Excel Discussion (Misc queries) 2 January 6th 06 03:52 PM


All times are GMT +1. The time now is 12:30 PM.

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"