+ Reply to Thread
Results 1 to 4 of 4

Preventing double entries in a same row, different column

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    Mississauga, Canada
    MS-Off Ver
    Office 365 2016- Excel for Mac
    Posts
    7

    Question Preventing double entries in a same row, different column

    A B C D
    1 LAST FIRST SINGLE COUPLE
    2 Abernaty Pat 25.00
    3 Adonis Theo 40.00
    4 Arabiatta Luigi 40.00
    5 Hermann Peter 25.00


    Here is my problem. In the above fictitious example, I have ensured (Validation) that each cell in column C and D prevent me to enter a wrong fee amount, by forcing me to use an drop down list with the only fee accepted for the column, in this instance, $ 25.00 dollars in the C column (SINGLE) and $ 40.00 in the D column (COUPLE).
    This works great.
    However, it will also allow me to enter a $ 25.00 AND a $ 40.00 fee for a single individual, which is wrong since an individual can only be in the SINGLE membership or the COUPLE membership structure.
    How can I prevent entering an amount in column C if column D already has an amount entered, and inversely?

    Is there a simple solution to my predicament? You have no doubt deduced that I was a basic Excel user and any solution submitted must be explained in very basic steps. Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Preventing double entries in a same row, different column

    How about in C have a dropdown Single or Couple
    Then in D
    =IF(C2="Single", 25, IF(C2="Double", 40, "")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Preventing double entries in a same row, different column

    Hi

    You can use data validation with the following formulas

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    for Single and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    for Couple

    But I like ChemistB´s suggestion

    Best regards

  4. #4
    Registered User
    Join Date
    09-20-2010
    Location
    Mississauga, Canada
    MS-Off Ver
    Office 365 2016- Excel for Mac
    Posts
    7

    Re: Preventing double entries in a same row, different column

    Sorry for the delay in replying and thank you for your assistance. I have change the format of my spreadsheet and solved my problem wit the addition of another column.

+ 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] Prevent from doing double entries On Column (G & H) through VB/Macro
    By pipsmultan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2014, 12:55 AM
  2. Preventing duplicate entries in a column during the copy/paste procedure
    By Jim McEwan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-03-2014, 10:07 AM
  3. [SOLVED] Preventing Duplicate Entries
    By flashdisk in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-13-2013, 08:37 PM
  4. Preventing duplicate row entries
    By kennethchu604 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2009, 07:10 PM
  5. Preventing duplicate entries
    By BBS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2009, 03:54 PM
  6. Preventing duplicate entries
    By Ltat42a in forum Excel General
    Replies: 9
    Last Post: 06-14-2008, 08:55 AM
  7. Preventing Duplicate Entries within a column
    By Bruce in forum Excel General
    Replies: 3
    Last Post: 01-28-2005, 09:06 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