Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Formula assistance column match sum

Please take a look at this formula.

=IF(COUNTIF(F$2:F$9,F2)=COUNTIF(F$2:F2,F2),IF(COUN TIF(K$2:K$9,K2)=COUNTIF(K$2:K2,K2),SUMIF(F$2:F2,F2 ,K$2:K2,K2,L$2:L2),"")

There is an error?

I would like to get a sum- if column F and K are identical. The numbers to
be summed are located in Column L.

Example:

F K L sum
s100 species 1 2
s100 species 1 4 6
s101 species 2 1 1
s102 species 3 2
s102 species 3 5 7
....
.....
.....
s1000 species 1 4
s1000 species 1 5 9

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula assistance column match sum

This seems to work.

Entered in M2 and copied down as needed. Cell M1 *must* not contain a
number. Also assumes the data is sorted or grouped together by column F as
is shown in your sample data.

=IF(F2&K2=F3&K3,"",SUM(L$2:L2)-SUM(M$1:M1))

--
Biff
Microsoft Excel MVP


"JB Akron" wrote in message
...
Please take a look at this formula.

=IF(COUNTIF(F$2:F$9,F2)=COUNTIF(F$2:F2,F2),IF(COUN TIF(K$2:K$9,K2)=COUNTIF(K$2:K2,K2),SUMIF(F$2:F2,F2 ,K$2:K2,K2,L$2:L2),"")

There is an error?

I would like to get a sum- if column F and K are identical. The numbers
to
be summed are located in Column L.

Example:

F K L sum
s100 species 1 2
s100 species 1 4 6
s101 species 2 1 1
s102 species 3 2
s102 species 3 5 7
...
....
....
s1000 species 1 4
s1000 species 1 5 9



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Formula assistance column match sum

Hi,

If I consider your stated goal and not your formula or your example:

=SUMPRODUCT((F1:F6=K1:K6)*L1:L6)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"JB Akron" wrote:

Please take a look at this formula.

=IF(COUNTIF(F$2:F$9,F2)=COUNTIF(F$2:F2,F2),IF(COUN TIF(K$2:K$9,K2)=COUNTIF(K$2:K2,K2),SUMIF(F$2:F2,F2 ,K$2:K2,K2,L$2:L2),"")

There is an error?

I would like to get a sum- if column F and K are identical. The numbers to
be summed are located in Column L.

Example:

F K L sum
s100 species 1 2
s100 species 1 4 6
s101 species 2 1 1
s102 species 3 2
s102 species 3 5 7
...
....
....
s1000 species 1 4
s1000 species 1 5 9

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Formula assistance column match sum

Hi,

Some additional comments, if I take your data and not you stated objectives
then the formula could be

=IF(COUNTIF(F$2:F$9,F2)=COUNTIF(F$2:F2,F2),SUMIF(L $2:L2,L2,L$2:L2),"")

Note that with your sample data the column K has no effect on the results,
this could be just bad luck because you choose to show this particular data
or it could be that you really don't need to consider that column.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"JB Akron" wrote:

Please take a look at this formula.

=IF(COUNTIF(F$2:F$9,F2)=COUNTIF(F$2:F2,F2),IF(COUN TIF(K$2:K$9,K2)=COUNTIF(K$2:K2,K2),SUMIF(F$2:F2,F2 ,K$2:K2,K2,L$2:L2),"")

There is an error?

I would like to get a sum- if column F and K are identical. The numbers to
be summed are located in Column L.

Example:

F K L sum
s100 species 1 2
s100 species 1 4 6
s101 species 2 1 1
s102 species 3 2
s102 species 3 5 7
...
....
....
s1000 species 1 4
s1000 species 1 5 9

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
Excel Spreadsheet Assistance (Match, Compare) Nancy Excel Worksheet Functions 1 January 17th 07 02:05 AM
Array Formula w/ COLUMN & MATCH FUNCTIONS SJT Excel Discussion (Misc queries) 4 June 26th 06 06:17 PM
formula to match a range(sort) so it matches an external column steveo Excel Discussion (Misc queries) 1 June 26th 06 07:54 AM
Formula that will change subsequent cells in a column to match fir Scott B Excel Discussion (Misc queries) 1 March 31st 06 12:19 AM
Match formula that pulls unique values from another column? alehm Excel Discussion (Misc queries) 6 September 8th 05 10:38 PM


All times are GMT +1. The time now is 09:51 AM.

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"