+ Reply to Thread
Results 1 to 6 of 6

need formula help to highlight date ranges

  1. #1
    Registered User
    Join Date
    05-03-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    3

    need formula help to highlight date ranges

    Hi. I have 2 columns A & B which contain a list of customer numbers (A) and dates (B)

    I would like a formula for column C which will show the word 'REPORT' if the customer number in A also appears at a date in the previous 90 days. The dates are beside the customer numbers

    Thanks

    Craig
    Last edited by CRAIG20; 05-03-2013 at 06:53 AM. Reason: title too short

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: need forumla help

    =IF(AND(COUNTIF($A$2:$A$55,A2)>1,COUNTIF(B2,">"&TODAY()-90)>0),"Report","")

    where A55 is the last row in the customer list

  3. #3
    Registered User
    Join Date
    05-03-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: need forumla help

    tHANKS. iT SAYS "YOU'VE ENETERED TOO MANY ARGUMENTS FOR THIS FUNCTION"

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,749

    Re: need formula help to highlight date ranges

    i have checked the formula and its working OK
    I copied from the post above and then pasted into a new column and it worked

    see attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-03-2013
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: need formula help to highlight date ranges

    Great. Thank you very much.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: need formula help to highlight date ranges

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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