+ Reply to Thread
Results 1 to 6 of 6

Need to capture data from 2nd column based in 1st column selection Userform.

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Need to capture data from 2nd column based in 1st column selection Userform.

    Hi all,

    I am looking for a bit of help on a project I am updating. In short, I have a user form that is referencing patient insurance data when we do a procedure. At the moment, the billing folks would like us to sub-divide into 2 groups based on the selection made. On a worksheet I have a named range I reference as "insurance." When I make my selection from the listing, I need to know the "classification" from the adjacent cell.

    Example: Medicare G0453
    BC/BS 95941

    Insurance coding determines how we calculate time on service. G-code billed 15 min units, 95941, billed by hour, rounded to nearest.

    I am looking for some helpful code that may get me on the right track. What I currently have is not quite getting me there.

    Please Login or Register  to view this content.
    To help make sense of this mess: Userform has 5 total boxes for time. Start Time, End Time, Calculated Total minutes, 95941 is billed in whole hours, rounded. G-code is billed in 15 min increments.

    I will bill only one or the other, so I am wanting the time to auto calculate and place in to proper textbox.

    Thank you for your assistance.

    Patrick

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Need to capture data from 2nd column based in 1st column selection Userform.

    Can you post an example workbook?

    Look at yellow banner on top of this page on how to.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Need to capture data from 2nd column based in 1st column selection Userform.

    Here is a stripped version of my workbook. The issue I am wanting to solve has to do with time calculation. On !Data A51:A78 are insurance company names. Column B51:B78 has one of 2 identifiers that classify how the time is billed. 95941 code is for billing 1 hour increments, rounded to the nearest whole. G0453 code is to bill in 15 min increments, rounded to the nearest 15min. On my UserForm I have tb_95941 which I would like to populate with the calculated time in rounded whole hours from the tb_totalmin box when the 95941 is next cell to the insurance selection. When the G0453 is next to the selected insurance, I would like the calculation to be 15 min rounded increments into the tb_Gcode box. Ideally, it should be one or the other, not both calculated and displayed.

    Hope this provides a bit more to go on.

    Thank you for your help.

    Patrick
    Attached Files Attached Files

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Need to capture data from 2nd column based in 1st column selection Userform.

    Is this what you're after?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-12-2009
    Location
    Hendersonville, TN
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Need to capture data from 2nd column based in 1st column selection Userform.

    Yes, Sir.

    Thank you very much. After seeing how you addressed the issue, I was glad to see I wasn't too terrible far from the mark. Thanks again for the help. This one is solved. :-)

    Regards,
    Patrick

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Need to capture data from 2nd column based in 1st column selection Userform.

    You're welcome and thanks for rep+.

+ 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. Based on 2 column selection , Constance value should populate on another column
    By chakkaravarthy.m in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-14-2019, 01:35 AM
  2. Find max value in column based on userform selection
    By dedward in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2019, 10:07 PM
  3. [SOLVED] Change column data based on drop down selection
    By jeremy9400 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-26-2014, 04:58 PM
  4. how to change data in a column based o drop down selection?
    By jeremy9400 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2014, 08:44 PM
  5. [SOLVED] Grab Data from more than one column Based on Selection from List in a different sheet
    By Chantal4130 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-04-2014, 10:22 AM
  6. capture data from userform in next empty column
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 07:42 AM
  7. [SOLVED] Need help hiding/unhiding column based on autofilter selection in a different column
    By kcleere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2006, 02:25 AM

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