+ Reply to Thread
Results 1 to 12 of 12

IF function to recognize data and place it in another worksheet in a proper column

  1. #1
    Registered User
    Join Date
    01-13-2015
    Location
    WI
    MS-Off Ver
    Office 2013
    Posts
    46

    IF function to recognize data and place it in another worksheet in a proper column

    See Worksheet CORE SCHEDULE (2) and SHEET 2.

    Core Schedule (2): I need excel to recognize the Clinic name in J5, J11 (Ortho App), the MA name in J7, J8, J13, J14 (Kathy H) the hours worked in M7, M8, M13, M14 example is Monday, but would need it to look at the same cells for Tuesday through Sunday, and then total the hours worked in the proper cells under the correct clinic and MA name in Sheet 2.

    Example: Kathy H is the MA; excel takes the hours from M7, Y8, and AK7 and totals them in Sheet 2/E30; and takes M13 and Y14, and totals them in E31.



    FYI: In Sheet 2 the clinic names are listed on the top row from E1 to S1
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: IF function to recognize data and place it in another worksheet in a proper column

    I can't see a way of doing this with a formula alone (unless there are very clever people out there who are good with array formulas).

    I played with OFFSET formulas, but you still need to create a table with a concatenation of name and clinic (I think).

    Are you open to having a macro which will generate such a table. (This could also then be useful for Pivot Tables).

    Regards, David

  3. #3
    Registered User
    Join Date
    01-13-2015
    Location
    WI
    MS-Off Ver
    Office 2013
    Posts
    46
    Yes I’m open to it.

    Quote Originally Posted by doop4204 View Post
    See Worksheet CORE SCHEDULE (2) and SHEET 2.

    Core Schedule (2): I need excel to recognize the Clinic name in J5, J11 (Ortho App), the MA name in J7, J8, J13, J14 (Kathy H) the hours worked in M7, M8, M13, M14 example is Monday, but would need it to look at the same cells for Tuesday through Sunday, and then total the hours worked in the proper cells under the correct clinic and MA name in Sheet 2.

    Example: Kathy H is the MA; excel takes the hours from M7, Y8, and AK7 and totals them in Sheet 2/E30; and takes M13 and Y14, and totals them in E31.



    FYI: In Sheet 2 the clinic names are listed on the top row from E1 to S1

  4. #4
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: IF function to recognize data and place it in another worksheet in a proper column

    OK - I'll come up with something, but it will be after the weekend. I am fully booked, and away from my computer for a few days.

    Trust you can wait a few days.

    David

  5. #5
    Registered User
    Join Date
    01-13-2015
    Location
    WI
    MS-Off Ver
    Office 2013
    Posts
    46

    Re: IF function to recognize data and place it in another worksheet in a proper column

    This there any follow up on my request?

  6. #6
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Sorry doop4204,

    I was otherwise detained yesterday, and couldn't get to your problem.

    I have something that I'm working on, but now realise I'm on the wrong track a little.

    There was nothing to distinguish the two "bands" being analysed, so my initial macro added up whether Kathy was MA1 or MA2. I now realise that for the Ortho App clinic, there is something different about row 3 and row 9, and that's what you are trying to separate. I can't find anything to tell me which is which. Is there anything?

    Regards,

    David

  7. #7
    Registered User
    Join Date
    01-13-2015
    Location
    WI
    MS-Off Ver
    Office 2013
    Posts
    46

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Im open to editing the spreadsheet to make it work. You have permission.

  8. #8
    Registered User
    Join Date
    01-13-2015
    Location
    WI
    MS-Off Ver
    Office 2013
    Posts
    46

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Is there an update?

  9. #9
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Hi doop4204,

    I have attached my first effort. Call it the beta version as it is a little slow. The macro takes about 5 seconds to run. (It could be sped up by writing the macro to an array, but I wanted to test that I was getting the correct information across). The macro it triggered by clicking on the button in G1.

    The macro reads across the first lot of data (rows 3 to 8) and if there are hours recorded, writes the information to the Data sheet.

    I have assumes that the two sets of data are for Week 1 and Week 2 of a fortnightly pay cycle (or something along those lines). Hence, in Column A, I have entered W1 and W2 on the first row of data all the way down.

    The Sheet 2 formula is a SUMIFS() formula which gets the information needed from the Data sheet. It will automatically update every time you refresh the information by running the macro

    I note that you have only entered Ortho App in the Monday for the first set of data. I have assumed that Monday will ALWAYS be populated. The macro does not look at any other day for the Clinic. (You could set it up so that the other days get the clinic from Monday as I did on row 5).

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".

    Last edited by David A Coop; 05-15-2019 at 12:29 AM.

  10. #10
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Hi doop4204 - How did you get on? Haven't seen a response, so don't know if you need anything more!

    David

  11. #11
    Registered User
    Join Date
    01-13-2015
    Location
    WI
    MS-Off Ver
    Office 2013
    Posts
    46

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Thanks for the work on this. Is not exactly what I was looking for but still a starting point. Looking for something cleaner.

  12. #12
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: IF function to recognize data and place it in another worksheet in a proper column

    Sorry to hear that. I can't think of another solution. Good luck!

    David

+ 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] Place one column of data into another worksheet into selected fields
    By Cbird in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2017, 06:26 PM
  2. [SOLVED] Place Year 1, Year 2, etc. of revenue in proper date column on cash flow forecast
    By Rzzberry in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-31-2017, 01:19 PM
  3. [SOLVED] HELP! formula to transfer data and place in proper location month2month..c attached
    By michaelDDW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-06-2015, 08:04 PM
  4. [SOLVED] Put value in its proper place
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2014, 12:13 PM
  5. PROPER function for single column
    By inwell in forum Excel General
    Replies: 2
    Last Post: 11-30-2013, 08:06 AM
  6. [SOLVED] Is this the proper place to ask my question?
    By amkazen in forum Excel General
    Replies: 1
    Last Post: 03-01-2006, 01:25 PM
  7. Help with Proper worksheet Function
    By Wolfwillows in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-17-2005, 04:45 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