Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default sum if it match the column criteria


Hello,
col A1 thru F1 has following codes
1,5,7,8,4,9

Col a2 thru F2 has 10,15,25,50,55,60 values

col G, H & I need a formula where col G would add the value based on code 1
& 9, Col H would add the value based on code 5 & 8 and col I would add the
value based on code 7 & 4.

Thanks for the soultion.

Dinesh

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default sum if it match the column criteria

Hello,

Just to add few comments.
sometime this codes changes columns and some time one or two code may not
appear. So looking for consistent formula where it works in different
scenarios.

Thanks.

Dinesh


"Dinesh" wrote:


Hello,
col A1 thru F1 has following codes
1,5,7,8,4,9

Col a2 thru F2 has 10,15,25,50,55,60 values

col G, H & I need a formula where col G would add the value based on code 1
& 9, Col H would add the value based on code 5 & 8 and col I would add the
value based on code 7 & 4.

Thanks for the soultion.

Dinesh

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sum if it match the column criteria

Try these:

For col G:

=SUM(SUMIF(A1:F1,{1,9},A2:F2))

For col H:

=SUM(SUMIF(A1:F1,{5,8},A2:F2))

For col I:

=SUM(SUMIF(A1:F1,{7,4},A2:F2))

Biff

"Dinesh" wrote in message
...

Hello,
col A1 thru F1 has following codes
1,5,7,8,4,9

Col a2 thru F2 has 10,15,25,50,55,60 values

col G, H & I need a formula where col G would add the value based on code
1
& 9, Col H would add the value based on code 5 & 8 and col I would add the
value based on code 7 & 4.

Thanks for the soultion.

Dinesh



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default sum if it match the column criteria

Thanks Biff. Perfect.

"T. Valko" wrote:

Try these:

For col G:

=SUM(SUMIF(A1:F1,{1,9},A2:F2))

For col H:

=SUM(SUMIF(A1:F1,{5,8},A2:F2))

For col I:

=SUM(SUMIF(A1:F1,{7,4},A2:F2))

Biff

"Dinesh" wrote in message
...

Hello,
col A1 thru F1 has following codes
1,5,7,8,4,9

Col a2 thru F2 has 10,15,25,50,55,60 values

col G, H & I need a formula where col G would add the value based on code
1
& 9, Col H would add the value based on code 5 & 8 and col I would add the
value based on code 7 & 4.

Thanks for the soultion.

Dinesh




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sum if it match the column criteria

You're welcome. Thanks for the feedback!

Biff

"Dinesh" wrote in message
...
Thanks Biff. Perfect.

"T. Valko" wrote:

Try these:

For col G:

=SUM(SUMIF(A1:F1,{1,9},A2:F2))

For col H:

=SUM(SUMIF(A1:F1,{5,8},A2:F2))

For col I:

=SUM(SUMIF(A1:F1,{7,4},A2:F2))

Biff

"Dinesh" wrote in message
...

Hello,
col A1 thru F1 has following codes
1,5,7,8,4,9

Col a2 thru F2 has 10,15,25,50,55,60 values

col G, H & I need a formula where col G would add the value based on
code
1
& 9, Col H would add the value based on code 5 & 8 and col I would add
the
value based on code 7 & 4.

Thanks for the soultion.

Dinesh






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
Match 2 criteria with 2 criteria LJoe Excel Worksheet Functions 6 June 23rd 06 03:26 AM
Any way for 2 column vlookups. i.e match last name then match firs CraigS Excel Worksheet Functions 5 March 7th 06 12:30 AM
Count rows that match criteria in 2 different column cell ranges JoAnn New Users to Excel 2 December 9th 05 05:51 PM
Using Match with multiple criteria Joe Gieder Excel Worksheet Functions 3 July 12th 05 02:52 PM
Match 2 Criteria GregR Excel Discussion (Misc queries) 3 June 5th 05 05:19 AM


All times are GMT +1. The time now is 04:57 AM.

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"