I need a function guys!

  • Thread starter Thread starter DB
  • Start date Start date
D

DB

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
 
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



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
 
OK, that's cool. Now what about the J column part? How do I put it all
together?
 
"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)



OK, that's cool. Now what about the J column part?
How do I put it all together?
 
This is my first attempt at Excel formulas, OK?


Jim Cone said:
"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)



OK, that's cool. Now what about the J column part?
How do I put it all together?
 
Looks good. I'm assuming that "mush" is the specific value in the B column,
aye?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top