+ Reply to Thread
Results 1 to 6 of 6

Sumnproduct formula

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2007
    Posts
    3

    Sumnproduct formula

    Hello, Ive got a spreadsheet with around 100 columns in it. but i need a formula for 2 columns. one column has a number 1,2,3,4, or 5 in it. the other column has different numbers it.

    I'm wanting to have a formula that looks at the first column (with 1,2,3,4, or 5 in it. For example it it sees "1" in the first column & will count the amount of numbers in the other column that are under 10. Does that make sense? For example:

    1 100
    1 5
    3 50
    1 8
    4 60
    5 2

    So i would need it to return the number "2"

    Thanks

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    It sounds doable, but we need a bit more detail. How does column A affect the count of Column B. (Should we assume that if there is a 2 in column B, we count numbers less than 20)?

  3. #3
    Registered User
    Join Date
    04-12-2007
    Posts
    3
    Thanks for the reply, column A determines if it should look at column b. I want it to look at all the cells in col A with 1 in. If they have a 1 in count all cells in col b that are under 10.

    so it needs some sort of =IF function then a countif formula in the same cell but dont know how to do it.

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Try this and let me know if it works:

    =SUMPRODUCT(--(A1:A6=1),--(B1:B6<10))

  5. #5
    Registered User
    Join Date
    04-12-2007
    Posts
    3
    That worked, thanks very much for your help.

  6. #6
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Glad I could help.

+ 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