+ Reply to Thread
Results 1 to 6 of 6

if or and and countif

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    if or and and countif

    Hi, I would like to count if the values in Col A of Sheet 1 if they appear in Col A of sheet 2 but only if the Date in Col B of sheet 1 is >= B1 of Sheet 2.

    Please Login or Register  to view this content.
    I want to say "other" if the values in Col A Sheet 1 don't appear even if the date in col B is greater that B1 of Sheet 2

    As you can see in the attachment, from C31 down a 0 appears rather than other - can anyone recommend a way to sort this?

    cheers for looking
    Attached Files Attached Files
    Last edited by Blake 7; 01-09-2015 at 10:21 AM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: if or and and countif

    =IF(Sheet1!$B32>=Sheet2!$B$1,COUNTIF(Sheet2!A:A,Sheet1!$A32),"Other")

    B32 in Sheet1 IS equal(=) to sheet2 B1. That's why!
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: if or and and countif

    Hi Fotis, how are you? hope all is well and that you had a good Christmas New Year! Long time no speak!

    I see what you are saying re B31:B121 being equal to sheet2 b1 but B122:B551 are greater than yet I still get a 0 instead of other!

    Anyway. Hope that you are well dude!

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: if or and and countif

    Could something like this work?

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  5. #5
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: if or and and countif

    it could work very well!!!

    Problem solved!

    thanks mate! hope you are well!!!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: if or and and countif

    Quote Originally Posted by Blake 7 View Post
    Hi Fotis, how are you? hope all is well and that you had a good Christmas New Year! Long time no speak!

    I see what you are saying re B31:B121 being equal to sheet2 b1 but B122:B551 are greater than yet I still get a 0 instead of other!

    Anyway. Hope that you are well dude!
    A lot of work but everything is ok. Thank you. All the best to you too!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  2. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  3. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  4. [SOLVED] COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  5. Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 PM

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