+ Reply to Thread
Results 1 to 5 of 5

Help with Multiple Entry Detection in a table

  1. #1
    Registered User
    Join Date
    09-11-2019
    Location
    GR
    MS-Off Ver
    2013
    Posts
    2

    Help with Multiple Entry Detection in a table

    Hi all!

    I am new here and hoped to get some help in this thing that I am doing for a medical appointment entry excel table.

    The table has entries, which are unique by a code. Then I would like to check how many "similar" codes are trying to get an appointment on the same day and alert the user that there is another entry, by a "similar" code (more on those similar codes later) in that date.

    The codes represent patients which are in a "family" lets say of codes. An example code would be X444f for one and X444e for another code, both in the X444 family. The later ones have a double letter prefix eg. XX444F

    The last character of those codes is what truly represents the "uniqueness" as to say of the code.

    then the user is doing an entry, by entering also a Date of Appointment.


    The formula I am using now is the COUNTIFS so I can have the number of multiple entries by that "Code Family" in that specific date. What I want it to do is to display how many appointments from the code family are being made for the same date and avoid that.


    This is the function I am using now: Problem is that allthough it "seems" to work for multiple entries, by displaying the number 2 for example, when there is a single entry it displays "1" which is not a double entry.

    Can you think of a way to work this? For example how to look for all entries exept self and only display something when the entries for that specific date are actually multiple from the same family of the code?

    Here's my fuction at the moment and an example segment of the table I am working on


    =countifs(Y:Y;Y2;AJ:AJ;AJ2;Q:Q;"="&Q2)


    Column Y is the date

    Column AJ is the "Code family" which is calculated by replacing the codes last digits with nothing with this function: =replace(E2;5;100;"") so W555f becomes W555 If you know a way for this to work with double character prefixes please say.. Example XX444f to become XX444

    Column Q is a string which describes the appointment premises.

    So any way to just alert the user when there are MULTIPLE entries of a family code (not unique codes) on a specific day? If it was to display some string as well, for example "Warning, there are another 2 appointments of the same family for that day. Is should not display just "1" as this is a unique entry.

    Thank you very much!
    Last edited by Volnix; 09-11-2019 at 08:15 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help with Multiple Entry Detection in a table

    Upload a sample file with desired results as well. To upload GO Advanced - Manage attachments -
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    09-11-2019
    Location
    GR
    MS-Off Ver
    2013
    Posts
    2

    Re: Help with Multiple Entry Detection in a table

    Ok I am uploading a downloaded file from google sheets which is kinda what I am trying to do..

    The problem with deleting the last character from the family codes is solved.

    But now the problem remains with the multiple appointments. It shows "1" it should show 0... Does It count it self?

    Note, the code in the downloaded xls went all screwy, so the code i am using is the same as in my first post, this:

    =countifs(Y:Y;Y2;AJ:AJ;AJ2;Q:Q;"="&Q2)

    and I think I just changed it to:

    =countifs(Y:Y;Y2;AJ:AJ;AJ2;Q:Q;Q2)

    (in the attached file the column letters are different)

    any ideas ??

    Thanks!

    Untitled.png
    Attached Files Attached Files
    Last edited by Volnix; 09-12-2019 at 06:43 AM.

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Help with Multiple Entry Detection in a table

    Try something like this maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help with Multiple Entry Detection in a table

    Maybe one of these as well:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    With some IF tweaks for warnings

+ 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. How to add data from Multiple tables last entry to a single table as new row
    By SteynfaardtD in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2019, 10:00 AM
  2. Replies: 2
    Last Post: 03-28-2017, 03:38 PM
  3. Distribute data from Single entry table to Multiple Workbooks
    By noront in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-07-2016, 09:46 AM
  4. Excel vba macro for multiple matching cells detection
    By adrian787 in forum Excel General
    Replies: 2
    Last Post: 03-25-2015, 05:54 AM
  5. [SOLVED] How do I get an entry in one table to generate the rows in an additional table?
    By Gavalar in forum Word Formatting & General
    Replies: 4
    Last Post: 04-16-2014, 08:07 PM
  6. [SOLVED] Code to move data from an entry table to a historical table by date.
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2014, 11:04 AM
  7. SQL detection
    By brucelim80 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2006, 03:40 AM

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