+ Reply to Thread
Results 1 to 8 of 8

Countif in two separate columns?

Hybrid View

  1. #1
    Registered User
    Join Date
    03-13-2005
    Posts
    6
    Many thanks that did the trick, but im stuck again on this one.

    Ive worked out an average using this command.

    =SUMIF('Clearence Status sheet'!U:U,"<=1000")/COUNTIF('Clearence Status sheet'!U:U,"<=1000")

    but i now need to add the date constraints as per my previous post.

    Can you help again?

    Many thanks

    Rob

  2. #2
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    I suspect this will do it - average values in column u<= 1000 for your date range

    =sumproduct(('Clearence Status sheet'!u1:u1000<=1000)*('Clearence Status sheet'!L1:L1000>=38108)*('Clearence Status sheet'!L1:L1000<38138)*('Clearence Status sheet'!u1:u1000))/sumproduct(('Clearence Status sheet'!u1:u1000<=1000)*('Clearence Status sheet'!L1:L1000>=38108)*('Clearence Status sheet'!L1:L1000<38138))
    not a professional, just trying to assist.....

  3. #3
    Registered User
    Join Date
    03-13-2005
    Posts
    6
    many thanks

    but i get #value!

    any ideas?

    Rob

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Maybe one of the cells in your ranges contains a #VALUE! error. If so, modify the formula to avoid the error value.

    Having said that, here's another formula to give you your average...

    =AVERAGE(IF(('Clearence Status sheet'!L1:L1000>=38108)*('Clearence Status sheet'!L1:L1000<38138)*('Clearence Status sheet'!U1:U1000<=1000),'Clearence Status sheet'!U1:U1000))

    ...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

  5. #5
    Registered User
    Join Date
    03-13-2005
    Posts
    6
    that works a treat, i just have to understand it now!

    p.s. why do i have to use ctrl+shift+enter? why doesnt it work without using it.

    thanks

  6. #6
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    CONTROL+SHIFT+ENTER is used whenever you create an array formula. See the help menu under 'Array formulas and how to enter them' for a detailed explanation.

    Hope this helps!

+ 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