+ Reply to Thread
Results 1 to 3 of 3

2 columns of values, summing values in column 1 if corresponding number in column 2..

Hybrid View

rantarctica 2 columns of values, summing... 11-11-2008, 11:04 AM
Dav =SUMPRODUCT((g4:G13>0)*(G4:G13... 11-11-2008, 11:08 AM
rantarctica works perfect thanks 11-11-2008, 11:19 AM
  1. #1
    Registered User
    Join Date
    11-11-2008
    Location
    new york
    Posts
    14

    2 columns of values, summing values in column 1 if corresponding number in column 2..

    Hi,

    If I have 2 columns of numbers, and I want to sum the number in column 1 if the numbers in column 2 meet a certain criteria.

    So, say I have $ amounts in Column A. I want to sum the $ amounts where the corresponding numbers in column B are >0 and <30.

    So
    Column A Column B
    5 20
    10 50
    2 0
    4 5

    Thus, the formula should add 5+4 = 9 automatically

    Any help is very much appreciated! Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    =SUMPRODUCT((g4:G13>0)*(G4:G13<30)*(f4:f13))

    or

    =SUMIF(G4:G13,">0",f4:f13)-SUMIF(G4:G13,">=30",f4:f13)

    Although you quote column A and B in the example and in the spreadsheet the column letters are different

    Should work

    Regards

    Dav
    Last edited by Dav; 11-11-2008 at 11:11 AM.

  3. #3
    Registered User
    Join Date
    11-11-2008
    Location
    new york
    Posts
    14

    works perfect thanks

    thanks, the formula works perfect

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1