Want to access the SUBTOTAL of a list from within a worksheet

  • Thread starter Thread starter Michael
  • Start date Start date
M

Michael

I think that this is an easy question but I simply couldn't find the answer.

I have the following list in XL2003

Column1 Column 2
PAYMENTS 100
CREDIT 200
PAYMENTS 1000

I want to create a formula somewhere in Sheet1 that will produce me the
equivalent of the sum of Column 2 where Column1=PAYMENTS. In other wants the
SUM of PAYMENTS is 1100. How can I access this sum using a formula somewhere
in my worksheet.

Thanks
Michael
 
With your posted data in columns A and B...

AND
C1: PAYMENTS

Then this formula returns the sum of
Col_B amounts corresponding to PAYMENTS:
D1: =SUMIF(A1:B5,C1,B1:B5)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
Thanks Ron,

This worked great !

- Michael

Ron Coderre said:
With your posted data in columns A and B...

AND
C1: PAYMENTS

Then this formula returns the sum of
Col_B amounts corresponding to PAYMENTS:
D1: =SUMIF(A1:B5,C1,B1:B5)

Does that help?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
You're welcome....I'm glad I could help.
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 

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