+ Reply to Thread
Results 1 to 5 of 5

Count Times L is > M only when V is > W

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Count Times L is > M only when V is > W

    Hi,

    I have four columns, L2 M2 V2 W2.

    I'm trying to make it so it adds up the amount of times a value in L is larger then the value in M for the whole column, but also only counting when the value in V is larger then W, also for the whole column.

    Can anybody work out the formula for me?

    I have "=MAX(L2:L14654,M2:M14654)" and "(=MAX(V2:W14654,V2:W14654)"

    But these only work out the largest value in the whole column.

    Any help is appreciated.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Count Times L is > M only when V is > W

    hi Risels7. not really sure this is what you need, but it should help you get there:
    =SUMPRODUCT(--(L2:L14654>M2:M14654))
    this counts number of times L is larger than M

    =SUMPRODUCT(--(L2:L14654>M2:M14654),--(V2:V14654>W2:W14654))
    this counts number of times only when L is larger than M AND V is larger than W in the same row

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Count Times L is > M only when V is > W

    Perfect...

    Thanks for that. Now all I need for this to be complete is to count the amount of times a name appears in column K AND L is larger then M.

    Thank you

  4. #4
    Registered User
    Join Date
    12-18-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Count Times L is > M only when V is > W

    Or Ideally...

    count the amount of times a name appears in column K AND L is larger then M AND V is larger than W in the same row.

    Thanks

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Count Times L is > M only when V is > W

    what name? uploading a sample Excel file will enable us to help you better. to upload, press "Go Advanced" beside the "Post Quick Reply" button & click on the paperclip icon. ideally, it should contain your desired results

    you can also try fiddling with the SUMPRODUCT. as long as you need 1 more logic, add in the comma, double negatives & the logical test with brackets. so if i were to guess, it'll be something like
    =SUMPRODUCT(--(K2:K14654="Alex"),--(L2:L14654>M2:M14654),--(V2:V14654>W2:W14654))

    i hope you can see a pattern

+ 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