Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default I need a function guys!


I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers in
the rows where a specific value exists in column B . I need to do the same
for column J with the same B value and then subtract the J total from H
total. Is this possible?
Thanks,
DB


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default I need a function guys!


Well you got one, if you look in Excel help for the SumIf function...

=SUMIF(H2:H300,"=Mush",B2:B300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"DB" wrote in message
I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers in
the rows where a specific value exists in column B . I need to do the same
for column J with the same B value and then subtract the J total from H
total. Is this possible?
Thanks,
DB


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default I need a function guys!

OK, that's cool. Now what about the J column part? How do I put it all
together?


"Jim Cone" wrote in message
...

Well you got one, if you look in Excel help for the SumIf function...

=SUMIF(H2:H300,"=Mush",B2:B300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"DB" wrote in message
I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers in
the rows where a specific value exists in column B . I need to do the
same
for column J with the same B value and then subtract the J total from H
total. Is this possible?
Thanks,
DB




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,290
Default I need a function guys!


"that's cool"? - Did you actually try the formula?

Insert a minus sign at the end of the formula and repeat using
the correct columns (this time) ...
=SUMIF(B2:B300,"=mush",H2:H300) - SUMIF(B2:B300,"=mush",J2:J300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel add-ins available)



"DB" wrote in message
OK, that's cool. Now what about the J column part?
How do I put it all together?


"Jim Cone"
wrote in message
Well you got one, if you look in Excel help for the SumIf function...
=SUMIF(H2:H300,"=Mush",B2:B300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"DB" wrote in message
I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers in
the rows where a specific value exists in column B . I need to do the
same for column J with the same B value and then subtract the J total from H
total. Is this possible?
Thanks,
DB

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default I need a function guys!

This is my first attempt at Excel formulas, OK?


"Jim Cone" wrote in message
...

"that's cool"? - Did you actually try the formula?

Insert a minus sign at the end of the formula and repeat using
the correct columns (this time) ...
=SUMIF(B2:B300,"=mush",H2:H300) - SUMIF(B2:B300,"=mush",J2:J300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel add-ins available)



"DB" wrote in message
OK, that's cool. Now what about the J column part?
How do I put it all together?


"Jim Cone"
wrote in message
Well you got one, if you look in Excel help for the SumIf function...
=SUMIF(H2:H300,"=Mush",B2:B300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"DB" wrote in message
I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers in
the rows where a specific value exists in column B . I need to do the
same for column J with the same B value and then subtract the J total
from H
total. Is this possible?
Thanks,
DB





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default I need a function guys!

Shorter version

=SUMPRODUCT((B2:B300="mush")*(H2:H300-J2:J300))


"Jim Cone" wrote:


"that's cool"? - Did you actually try the formula?

Insert a minus sign at the end of the formula and repeat using
the correct columns (this time) ...
=SUMIF(B2:B300,"=mush",H2:H300) - SUMIF(B2:B300,"=mush",J2:J300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel add-ins available)



"DB" wrote in message
OK, that's cool. Now what about the J column part?
How do I put it all together?


"Jim Cone"
wrote in message
Well you got one, if you look in Excel help for the SumIf function...
=SUMIF(H2:H300,"=Mush",B2:B300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"DB" wrote in message
I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers in
the rows where a specific value exists in column B . I need to do the
same for column J with the same B value and then subtract the J total from H
total. Is this possible?
Thanks,
DB


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default I need a function guys!

Looks good. I'm assuming that "mush" is the specific value in the B column,
aye?

"Teethless mama" wrote in message
...
Shorter version

=SUMPRODUCT((B2:B300="mush")*(H2:H300-J2:J300))


"Jim Cone" wrote:


"that's cool"? - Did you actually try the formula?

Insert a minus sign at the end of the formula and repeat using
the correct columns (this time) ...
=SUMIF(B2:B300,"=mush",H2:H300) - SUMIF(B2:B300,"=mush",J2:J300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel add-ins available)



"DB" wrote in message
OK, that's cool. Now what about the J column part?
How do I put it all together?


"Jim Cone"
wrote in message
Well you got one, if you look in Excel help for the SumIf function...
=SUMIF(H2:H300,"=Mush",B2:B300)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"DB" wrote in message
I need a function guys!
I need to sum the numbers in column H (H2:H300) but only those numbers
in
the rows where a specific value exists in column B . I need to do the
same for column J with the same B value and then subtract the J total
from H
total. Is this possible?
Thanks,
DB




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
IF function with multiple results: No problem for you guys, but for me... azores Excel Worksheet Functions 2 December 1st 05 05:02 AM
need help guys psyherin Excel Worksheet Functions 0 November 30th 05 05:21 AM
First post, need help guys! Moxy1980 Charts and Charting in Excel 2 October 15th 05 01:41 PM
Please Help Guys! ivanov_nv Excel Worksheet Functions 0 November 9th 04 04:17 PM
Please Help Guys! ivanov_nv Excel Worksheet Functions 2 November 9th 04 03:50 PM


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