+ Reply to Thread
Results 1 to 3 of 3

If than or Match formula???

  1. #1
    Registered User
    Join Date
    08-14-2009
    Location
    usa
    MS-Off Ver
    Excel 2003
    Posts
    1

    If than or Match formula???

    thanks in advance... trying to make an impression at work and i'm not exactly at all the best with excel. i need a formula which i think would help prevent errors.

    spreadsheet is basic, 3 columns (inv, date sub, date pros)
    i need the formula to determine if an "inv" has been entered multiple times.
    if you enter inv#123 this week and 2 weeks from now enter inv#123 again i need the spreadsheet to pop up "NO" or "BAD" (word doesn't matter really).

    I thought of the "IF" formula but obviously i'm not exactly the best here. Any help would be great.

    thanks....
    Last edited by dduvall; 08-14-2009 at 04:35 PM. Reason: mod response

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: formula help

    Welcome to the forum,

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If than or Match formula???

    Thanks for taking the time to read and comply with the rule ... and sorry that nobody has gotten back to you....

    ... have you considered data validation?

    Say the values you are entering are in range E2:E100...with heading in E1

    Then you would select E2 to E100 and go to Data|Validation..

    Select Custom and then enter formula:

    =COUNTIF($E$1:E2,E2)=1

    Now it will only allow you to enter any value only once in that range... as you go down.

    If you may have some numbers already down the list and might be replacing numbers higher up, but do not want repeats, then use formula:

    =COUNTIF($E$1:$E$100,E2)=1

    Click Ok and test.

    ... Note: You can change the error message via Data Validation Error Alert tab.

+ 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