+ Reply to Thread
Results 1 to 16 of 16

Want to retrieve/display client visit dates by client name

  1. #1
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Unhappy Want to retrieve/display client visit dates by client name

    I want to be able to type a client's first and last name in a cell in one sheet, and have it pull/retrieve from another sheet all dates the client has visited my clinic. This other sheet is an exported file from an online scheduler I use. It is less than elegant and cannot be customized.

    I've provided a sample workbook for an idea as to what I am trying to achieve. Invoice sheet requires client first and last name (E8). B10 service date field needs to be populated with all the dates he/she has visited. The rest of the information can be static, but it would be nice if it automatically populated too.

    I came up with this formula but it's not working:

    =IF(ISERROR(INDEX($C$2:$N$400,SMALL(IF($C$2:$C$400=$Q$4,ROW($C$2:$C$400)),ROW(1:1)),2)),"",INDEX($C$2:$N$400,SMALL(IF($C$2:$C$400=$Q$3,ROW($C$2:$C$400)),ROW(1:1)),2))

    From the attached images below, I want to be able to type "Jill Green" in the Claim#/Client Name box, and have all the dates she's visited display under SERV.DATE below.

    Thank you.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by jb5150; 11-07-2017 at 04:23 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Want to retrieve/display client visit dates by client name

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Re: Want to retrieve/display client visit dates by client name

    Hi Ali, I hope the changes made will suffice.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    Hello and welcome to the forum.

    There is no "Jill Green" in the 'Invoice sample.csv' sheet of your sample workbook.

    Also, you are showing SERV. DATES in June and July (in the 'invoice' sheet) yet I do not see any June or July dates in the 'Invoice sample.csv' sheet.

    Am I missing something or are your expected outcomes not inline with the data that you shared?

  5. #5
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Re: Want to retrieve/display client visit dates by client name

    Quote Originally Posted by 63falcondude View Post
    Hello and welcome to the forum.

    There is no "Jill Green" in the 'Invoice sample.csv' sheet of your sample workbook.

    Also, you are showing SERV. DATES in June and July (in the 'invoice' sheet) yet I do not see any June or July dates in the 'Invoice sample.csv' sheet.

    Am I missing something or are your expected outcomes not inline with the data that you shared?
    Thank you. I had a blonde moment, the original post has been corrected. Please let me know if you need any other information.

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

    Re: Want to retrieve/display client visit dates by client name

    You lost your workbook.
    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

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    If it is possible, I would format your data (in the 'Invoice sample.csv' sheet as a table. Otherwise you will have to create static ranges in your formulas (or dynamic named ranges for your data).

    Here is one solution using static ranges:

    A11 =IFERROR(INDEX('Invoice sample.csv'!G$2:G$100,SMALL(IF('Invoice sample.csv'!C$2:C$18&" "&'Invoice sample.csv'!D$2:D$18=E$8,ROW('Invoice sample.csv'!A$2:A$18)-(ROW('Invoice sample.csv'!A$2)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

    B11 =IFERROR(INDEX('Invoice sample.csv'!N$2:N$100,SMALL(IF('Invoice sample.csv'!C$2:C$18&" "&'Invoice sample.csv'!D$2:D$18=E$8,ROW('Invoice sample.csv'!A$2:A$18)-(ROW('Invoice sample.csv'!A$2)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

    Drag all of the formulas down through row 22.

    I do not see columns for RATE, or GST in your data so I didn't do anything with those.

    Also, note that you can get the duration of the sessions in column A with the descriptions but the formula would be a nightmare. Do you want that or will another column in the 'invoice' sheet with the duration suffice?

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    After further review, the formula in column A won't be that bad if you want to include the duration.

    Try this in A11:

    =IFERROR(INDEX(TEXT('Invoice sample.csv'!B$2:B$18-'Invoice sample.csv'!A$2:A$18,"[m]")&" Min "&'Invoice sample.csv'!G$2:G$100,SMALL(IF('Invoice sample.csv'!C$2:C$18&" "&'Invoice sample.csv'!D$2:D$18=E$8,ROW('Invoice sample.csv'!A$2:A$18)-(ROW('Invoice sample.csv'!A$2)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

  9. #9
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Re: Want to retrieve/display client visit dates by client name

    63fal,

    ideally I'd like little to no formatting on the data as its spit-out by Acuity Scheduler. I want other people to be able to use this, most of which have little to no excel experience.

    Rate and GST are static, would there be a way to have some sort of IF statement where if a date is returned it auto fills those to a static number?

    Duration of the session is not important at all and I'd rather it not be included.

    Thank you for your assistance.


    UPDATE: B11 works like a charm! Thank you
    A11 does not fill beyond the first cell. I copied the formula throughout that column but still won't display data beyond the B11 cell.
    Last edited by jb5150; 11-07-2017 at 02:59 PM.

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    Upon even FURTHER review, I now realize that RATE comes from the "Appointment Price" column, GST is a 5% sales tax, and Total is the sum of RATE and GST.

    So, here are all of the formulas:

    A2 =IFERROR(INDEX(TEXT('Invoice sample.csv'!B$2:B$18-'Invoice sample.csv'!A$2:A$18,"[m]")&" Min "&'Invoice sample.csv'!G$2:G$100,SMALL(IF('Invoice sample.csv'!C$2:C$18&" "&'Invoice sample.csv'!D$2:D$18=E$8,ROW('Invoice sample.csv'!A$2:A$18)-(ROW('Invoice sample.csv'!A$2)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

    B2 =IFERROR(INDEX('Invoice sample.csv'!N$2:N$100,SMALL(IF('Invoice sample.csv'!C$2:C$18&" "&'Invoice sample.csv'!D$2:D$18=E$8,ROW('Invoice sample.csv'!A$2:A$18)-(ROW('Invoice sample.csv'!A$2)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

    C2 =IFERROR(INDEX('Invoice sample.csv'!I$2:I$100,SMALL(IF('Invoice sample.csv'!C$2:C$18&" "&'Invoice sample.csv'!D$2:D$18=E$8,ROW('Invoice sample.csv'!A$2:A$18)-(ROW('Invoice sample.csv'!A$2)-1)),ROWS(A$1:A1))),"") Ctrl Shift Enter

    D2 =IF(C11="","",0.05*C11)

    E2 =IF(C11&D11="","",SUM(C11:D11))

    Drag all formulas through row 22.

    See attachment.

    Also, you have to save your workbook as a .xlsx (Excel 2007 or newer) in order for these formulas to work.
    .xls does not support IFERROR.

    Edit: I just read your post #9. If you do not want to include the duration in column A, use the formula for A11 in post #7.
    Attached Files Attached Files
    Last edited by 63falcondude; 11-07-2017 at 02:56 PM.

  11. #11
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Re: Want to retrieve/display client visit dates by client name

    Damn you're good. I can't thank you enough, I feel indebted for your help.

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    Glad we could help.

    Thanks for the rep!
    Last edited by 63falcondude; 11-07-2017 at 03:26 PM. Reason: Rep Added

  13. #13
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Re: Want to retrieve/display client visit dates by client name

    One last question:

    I am creating another sheet called Claim Number. Here I have Column A (Client name) and Column B (Claim #). I want to be able to query in the invoice and having the client's claim # show up.

    I'd like for this to show up in E7 above the client's name of the invoice image posted above.

    Can I just modify the formula you gave me to do this?


    I tried B2 =IFERROR(INDEX(‘Claim’!B$2:B$100,SMALL(IF(‘Claim’!A$2:A$18&" “=E$7,ROW(‘Claim'!A$2:A$18)-(ROW(‘Claim'!A$2)-1)),ROWS(A$1:A1))),"") however it doesn't work.

    Here's the workbook with the new sheet.
    Attached Files Attached Files
    Last edited by jb5150; 11-07-2017 at 03:52 PM.

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    I'm sure that there will be more to this, but in E7 of the 'invoice' sheet:
    =Claim!B2
    will pull the claim number.


    If there will be a list of different names in column A of the 'Claim' sheet (should have shown this in your sample if this is the case), then you can use this:
    E7 =INDEX(Claim!B:B,MATCH(E8,Claim!A:A,0))
    to pull the claim number that matches the name in E8 of the 'invoice' sheet.

  15. #15
    Registered User
    Join Date
    11-07-2017
    Location
    Vancouver, Canada
    MS-Off Ver
    2017
    Posts
    7

    Re: Want to retrieve/display client visit dates by client name

    Worked like a charm=) Thanks again!

  16. #16
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Want to retrieve/display client visit dates by client name

    You're welcome.

+ 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] Client Data in Columns - how to create a client drop down
    By abearmenta in forum Excel General
    Replies: 9
    Last Post: 10-10-2016, 10:24 AM
  2. Extracting dates from a client database
    By aaronbaxter in forum Excel General
    Replies: 1
    Last Post: 01-29-2016, 11:44 AM
  3. [SOLVED] Moving variable data from multiple same-client records to one client record
    By jkilday4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-19-2015, 02:32 PM
  4. Client code for differentiated client price
    By a1b2c3d4e5f6g7h8i9 in forum Excel General
    Replies: 5
    Last Post: 02-27-2014, 12:14 PM
  5. One spreadsheet but adding hours on a client by client basis..
    By arthurArthur in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-01-2013, 01:58 AM
  6. format cell to recall client name-enter a client #
    By cheryl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2005, 06:05 PM
  7. What's the easiest way to set up a client pipline w COE dates and.
    By Vanessa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2005, 08:06 PM

Tags for this Thread

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