#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default SumIf Formula

Hello there.

I am trying to add a sum range whose headers are equal to a specific one.

Row 1 will have the headers (Texas, NV, CA). Row 2 will have the
corresponding sales for either TX, NV or CA.

How can I say add the values in row 2 only if row 1's header = TX and NV?

Your help is appreciated. Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default SumIf Formula


=SUMIF(1:1,"TX",2:2)
=SUMIF(1:1,"NV",2:2)
=SUMIF(1:1,"CA",2:2)

HTH,
Bernie
MS Excel MVP


"Storm" wrote in message
...
Hello there.

I am trying to add a sum range whose headers are equal to a specific one.

Row 1 will have the headers (Texas, NV, CA). Row 2 will have the
corresponding sales for either TX, NV or CA.

How can I say add the values in row 2 only if row 1's header = TX and NV?

Your help is appreciated. Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default SumIf Formula

Hi Bernie, so there is no way then of saying if 1:1 = TX or NV then get the
sum of their values in row 2? I have to do multiple sumif statements and
just separating them with "+"?

thanks.

"Bernie Deitrick" wrote:


=SUMIF(1:1,"TX",2:2)
=SUMIF(1:1,"NV",2:2)
=SUMIF(1:1,"CA",2:2)

HTH,
Bernie
MS Excel MVP


"Storm" wrote in message
...
Hello there.

I am trying to add a sum range whose headers are equal to a specific one.

Row 1 will have the headers (Texas, NV, CA). Row 2 will have the
corresponding sales for either TX, NV or CA.

How can I say add the values in row 2 only if row 1's header = TX and NV?

Your help is appreciated. Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default SumIf Formula

That is the easiest...

=SUMIF(1:1,"TX",2:2) + SUMIF(1:1,"NV",2:2)

HTH,
Bernie
MS Excel MVP


"Storm" wrote in message
...
Hi Bernie, so there is no way then of saying if 1:1 = TX or NV then get the
sum of their values in row 2? I have to do multiple sumif statements and
just separating them with "+"?

thanks.

"Bernie Deitrick" wrote:


=SUMIF(1:1,"TX",2:2)
=SUMIF(1:1,"NV",2:2)
=SUMIF(1:1,"CA",2:2)

HTH,
Bernie
MS Excel MVP


"Storm" wrote in message
...
Hello there.

I am trying to add a sum range whose headers are equal to a specific one.

Row 1 will have the headers (Texas, NV, CA). Row 2 will have the
corresponding sales for either TX, NV or CA.

How can I say add the values in row 2 only if row 1's header = TX and NV?

Your help is appreciated. Thank you.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 58
Default SumIf Formula

Thanks Bernie.

"Bernie Deitrick" wrote:

That is the easiest...

=SUMIF(1:1,"TX",2:2) + SUMIF(1:1,"NV",2:2)

HTH,
Bernie
MS Excel MVP


"Storm" wrote in message
...
Hi Bernie, so there is no way then of saying if 1:1 = TX or NV then get the
sum of their values in row 2? I have to do multiple sumif statements and
just separating them with "+"?

thanks.

"Bernie Deitrick" wrote:


=SUMIF(1:1,"TX",2:2)
=SUMIF(1:1,"NV",2:2)
=SUMIF(1:1,"CA",2:2)

HTH,
Bernie
MS Excel MVP


"Storm" wrote in message
...
Hello there.

I am trying to add a sum range whose headers are equal to a specific one.

Row 1 will have the headers (Texas, NV, CA). Row 2 will have the
corresponding sales for either TX, NV or CA.

How can I say add the values in row 2 only if row 1's header = TX and NV?

Your help is appreciated. Thank you.






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 Help - Not sure which one I need! SUMIF I think?! HayleyKingston Excel Discussion (Misc queries) 6 March 12th 08 10:23 PM
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
Sumif on Formula instead of Value adodson Excel Worksheet Functions 4 May 30th 06 05:28 PM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM


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