+ Reply to Thread
Results 1 to 17 of 17

Reorganizing Messy Data

  1. #1
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Reorganizing Messy Data

    Hello!

    I am hoping to get some help on an issue that I cannot seem to solve on my own regarding a Pay Summary report for my company. Currently I am looking for an easier way to report hours of Full-Time/Part-Time employees on a weekly basis. Unfortunately, the report that we get is quite messy when you export it to excel and I am struggling to get it to easily display meaningful information.

    What I am looking to have is to be able to read the following for each employee:

    - Employee name
    - Part-Time/Full-Time/Manager
    - Hours worked for the week

    Bonus points if someone can figure out how to show how much vacation/paid time off the full-timers/managers had for the week.

    So far I managed to find a macro that allowed me to move the Full-Time/Part-Time next to the employee name, but with all the numbers for hours I cannot find a way to consistently get them to line up with the correct employee.

    I will attach the file to this post. Thank you for any help you are able to give me!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Reorganizing Messy Data

    At first glance what you are asking for appears to require a lot of work. You may want to consider the paid services portion of this website. Best of luck

  3. #3
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Thanks for your reply. I realize the data is horrendously messy and I am asking a good bit. If someone can't find out a relatively simple solution I will most definitely look to the paid services forum to try and seek and answer.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Reorganizing Messy Data

    It appears that you haved cleaned up your data somewhat. Did you remove headings at all, becasue I see that the name in C21 has "Name" above it, but the other names do not?

    Also, would you be ok with adding a helper to pull in the names?
    I put this in G21, copied down...
    =IF(ISERROR(FIND(",",C21,1)),"",C21)

    I did not use yout PT, I used this in C4, copied down, to pull in the names...
    =IFERROR(INDEX(RawData!$G$21:$G$200,MATCH(0,INDEX(COUNTIF($C$3:C3,RawData!$G$21:$G$200),0,0),0)),"")

    Now that you have the names, and assuming that there will always be teh same amount of rows between names, you can use this to pull in your data...
    D4=IF($C4="","",INDEX(RawData!$E$21:$E$200,MATCH(Summary!$C4,RawData!$C$21:$C$200,0)+4))
    copied down and across

    C
    D
    E
    3
    Hours Overlap Hours
    4
    DOE, JOHN
    35.15
    35.15
    5
    MADISON, JAMES
    34.33
    34.33
    6
    WASHINGTON, GEORGE
    36.48
    36.48
    7
    JEFFERSON, THOMAS
    19.38
    19.38
    8
    MOUSE, MICKEY
    32.2
    32.2
    9
    DOE, JANE
    31.08
    31.08
    10
    SMITH, DAVID
    30.15
    30.15
    11
    JOHNSON, JOE
    47.8
    47.8
    12
    RIVERS, PHILLIP
    11.88
    11.88
    13
    JAMES, BRIAN
    48.5
    48.5
    14
    WHITE, SEAN
    40
    40
    15
    DAVIS, MIKE
    0.55
    0.55
    16
    WORKMAN, MICHAEL
    32.48
    32.48
    17
    JOSEPH, CAMERON
    12.2
    12.2
    18
    WRYNN, CODY
    35.3
    35.3


    edit: actually, doing the helper the way I did, it does not matter if headings have been removed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Hi FDibbins,

    First off I'd like to say thank you so much for what you've done so far. It seems to work perfectly. The only issue I'm having is when I put in the last formula into the D4 cell I get a #N/A error.

    The only other thing missing is I would like to get the Pay Rule for each employee to be lined up as well so I can see if they are PT/FT/Salaried. Also the overlap hours part do not matter, I meant to delete those out of the spreadsheet before posting here. Sorry about that.

  6. #6
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Nevermind. I figured out why I was getting the #N/A error. So the only thing left is to get the Pay Rule to line up. Thanks so much again.

    Edit:

    Using the formula you used to pull the hours I managed to pull the Pay Rule as well. It seems to work pretty much perfectly. The only issue that arises is when an employee had overtime (and vacation which happens to be none on here) it causes the total hours to go down to 5 or more rows below the name so the formula just catches the overtime number instead of the total hours number.

    I would imagine this would be really difficult to fix and since it is only for a fraction of the employees it is not a huge deal.
    Last edited by Glade1825; 11-22-2014 at 07:14 PM.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Reorganizing Messy Data

    For the pay rule...
    =IF($C4="","",INDEX(RawData!$D$21:$D$200,MATCH(Summary!$C4,RawData!$C$21:$C$200,0)))
    (note, I just changed the INDEX range, and removed the +4 at the end

    I will take a look at "variable" rows for you

    Can you upload a sample with teh extra rows (add as many as you think you will need)

  8. #8
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    For the extra rows, you can see an example from what you posted earlier with employee "Davis, Mike." The hours are showing as 0.55 with the formula used, but really that was his overtime hours. His true total hours were 41.55.

    What happens is the report will add extra information about overtime/vacation/etc above the total hours whenever someone has them.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Reorganizing Messy Data

    OK, I have changed a few things.

    on RawData..
    G21=IF(ISERROR(FIND(",",C21,1)),G20,C21) copied down
    Added extra helper
    H21=IF(G21=G20,H20+1,1) copied down

    Then on Summary...
    E4=IF($C4="","",INDEX(RawData!$E$21:$E$200,MATCH(Summary!$C4,RawData!$C$21:$C$200,0)+MAX(IF(RawData!$G$21:$G$140=Summary!$C4,RawData!$H$21:$H$140),0)-3))

    This an ARRAY formula, and needs to be entered 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.

    You can then copy it down

  10. #10
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Hi FDibbins,

    I'm having an issue with the ARRAY formula. Whenever I put it in the cell is just blank, no value but the formula is there (it almost looks like the value is hidden).
    Last edited by Glade1825; 11-22-2014 at 08:55 PM.

  11. #11
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Here the file with the issue I am having.

    PaySummary3.xlsm

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Reorganizing Messy Data

    Thats because it needs the name to work with. Remember this, from post #4?
    I put this in G21, copied down...
    =IF(ISERROR(FIND(",",C21,1)),"",C21)

    I did not use yout PT, I used this in C4, copied down, to pull in the names...
    =IFERROR(INDEX(RawData!$G$21:$G$200,MATCH(0,INDEX(COUNTIF($C$3:C3,RawData!$G$21:$G$200),0,0),0)),"")

  13. #13
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Ah, right. That seems to work nicely. The only thing I am getting is for the last employee, "Wrynn, Cody" the hours field is showing "Hours" instead of a number.

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Reorganizing Messy Data

    Yes, I noticed that, I meant to say that it seems that your last data "set" is missing something - actually, there are 2 blank lines between each set...except for the last set?
    Try this, instead...
    =IF($C4="","",INDEX(RawData!$E$21:$E$200,MATCH(Summary!$C4,RawData!$C$21:$C$200,0)+MAX(IF(RawData!$G$21:$G$140=Summary!$C4,RawData!$H$21:$H$140),0)-IF(MAX(IF(RawData!$G$21:$G$140=Summary!$C4,RawData!$H$21:$H$140),0)=6,1,3)))

  15. #15
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    That seems to have fixed it!

    Thanks so much for your help once again. I would be more than happy to tip you or give you some sort of donation for your help as I feel this was a difficult and time consuming issue. If there is a way that I can do that, please let me know.

    Thanks again!

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Reorganizing Messy Data

    I am just happy we managed to resolve your question

    If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

  17. #17
    Registered User
    Join Date
    09-26-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    25

    Re: Reorganizing Messy Data

    Appreciate it again. Unfortunately I cannot add any more reputation for you since the last time (1st time) I asked a question you were the one who gave me an answer and I repped you then! I would if I could though

+ 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. Cleaning up messy data…URGENT Please...
    By artistdedigital in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-09-2014, 01:20 AM
  2. Problem with sortin messy data
    By hensoros in forum Excel General
    Replies: 7
    Last Post: 05-14-2014, 12:05 PM
  3. Reorganizing Data
    By nav505 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-23-2013, 01:13 PM
  4. Cleaning Messy Data for Import
    By Mordred in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2011, 12:14 PM
  5. [SOLVED] messy data
    By Adam in forum Excel General
    Replies: 4
    Last Post: 01-24-2006, 11:55 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