Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default SUM the column, IF...

Here is my data:

Data1 Data2 Data 4
combiner HH1 5
splitter HH2 6
combiner HH1 5
splitter HH2 6
combiner HH1 5
splitter HH2 6

I want to add all the data from column "Data 4", If the corresponding row
contains "HH1".

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default SUM the column, IF...

Assuming you are using columns A, B and C here, then you can use:

=SUMIF(B:B,"HH1",C:C)

Hope this helps.

Pete

On Jan 3, 12:57*pm, Tauqeer M.Latif
wrote:
Here is my data:

Data1 * Data2 * Data 4
combiner * * * *HH1 * * 5
splitter * * * *HH2 * * 6
combiner * * * *HH1 * * 5
splitter * * * *HH2 * * 6
combiner * * * *HH1 * * 5
splitter * * * *HH2 * * 6

I want to add all the data from column "Data 4", If the corresponding row
contains "HH1".

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default SUM the column, IF...

Hi,

FYI - you can make formulas more flexible by using cell references, so in
this case your formula could read

=SUMIF(B2:B10,F1,C2:C10)

where F1 contains the entry you want to sum for - HH1.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"Tauqeer M.Latif" wrote:

Here is my data:

Data1 Data2 Data 4
combiner HH1 5
splitter HH2 6
combiner HH1 5
splitter HH2 6
combiner HH1 5
splitter HH2 6

I want to add all the data from column "Data 4", If the corresponding row
contains "HH1".

Thanks.

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
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM


All times are GMT +1. The time now is 12:08 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"