+ Reply to Thread
Results 1 to 6 of 6

listing and alphabetizing patient names always populates 1 less patient than what I have

  1. #1
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    listing and alphabetizing patient names always populates 1 less patient than what I have

    On the orange tabs ("Meals" and "Vitals" tabs) you will see some columns dedicated to the alphabetizing of patient names grayed out. In the blue column you can see how the patient name is populated in alphabetized order and truncated to the first letter of the last name. If you count the names in column A and compare with the names in column F you will always be one short. Why is this? You can plainly see the formulae are functioning, and there are not syntax errors...Can anyone shed some light on this for me?


    BADRED33desensitzed.xlsm

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: listing and alphabetizing patient names always populates 1 less patient than what I ha

    Hi,

    As per the last criteria on your formula "=IFERROR(LEFT(C8,FIND(" ",C8))&" "&MID(C8,FIND(" ",C8)*1,2),"")" if the cell value of "C" is blank, the value should be blank.

    Kindly double check your data.

    Regards
    Shareez

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: listing and alphabetizing patient names always populates 1 less patient than what I ha

    Hello,

    I've never been a big fan of this kind of formula... Looking at the example you sent, seems like "big wheel" is missing.
    I believe it's because "W"heel comes after "V" in #Value.

    Try replacing your formula in B8 by :
    =IFERROR(TRIM(RIGHT(SUBSTITUTE(A8," ",REPT(" ",255)),255))&", "&LEFT(A8, LEN(A8)-LEN(TRIM(RIGHT(SUBSTITUTE(A8," ",REPT(" ",255)),255)))-1),"ZZZZZZZZZ")

    Instead of #VALUE, you'll get "ZZZZZZ" but this seems to fix the problem.

    (Now, don't ask me why... I'm never able to figure out this formula and will prefer the VBA approach).
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: listing and alphabetizing patient names always populates 1 less patient than what I ha

    On Meals Log
    In B8
    Please Login or Register  to view this content.
    and copy down.

    Then in C8 try this Array Formula which requires confirmation with Ctrl+Shift+Enter instead of Enter alone.
    Please Login or Register  to view this content.
    and then copy down.


    ************************************
    Remember an Array Formula is confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: listing and alphabetizing patient names always populates 1 less patient than what I ha

    I think I have missed the sorting part.

  6. #6
    Forum Contributor
    Join Date
    08-28-2013
    Location
    grand rapids, michigan
    MS-Off Ver
    Excel 2010
    Posts
    163

    Re: listing and alphabetizing patient names always populates 1 less patient than what I ha

    GC excel I am glad to see I am not the only one who pulls hair out with this thing. Thank you so much for a solution...I have no idea how, but it works. Amen!

+ 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 count number of different dates for a patient.
    By ATaylor643 in forum Excel General
    Replies: 3
    Last Post: 09-23-2014, 07:05 PM
  2. apply textbox input to selected cells
    By crypta8 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2012, 06:09 AM
  3. Problem with signs on budget percent variance formula
    By Leigh.DeFilippis@gma in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2012, 12:55 PM
  4. Averaging Averages For Patient Care
    By Michael Roback in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-25-2008, 09:24 PM
  5. [SOLVED] I need to exclude duplicate patient names for dates of service is.
    By Shannon in forum Excel General
    Replies: 2
    Last Post: 04-10-2005, 10: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