+ Reply to Thread
Results 1 to 16 of 16

Reconfigure Data to make it usuable

  1. #1
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Post Reconfigure Data to make it usuable

    Hi all,

    Thank you for all and any help in advance!

    I have an export from a site (which I am unable to edit) which is giving the data in a layout that I am unable to use - it as got the week end date and then Mon, Tues, Weds... columns which means I can't do a SUMIF function as each row doesn't have it own date:

    Is it possible to convert this:
    Company, Week End, Location, Job Type, Mon, Tue, Wed, Thu, Fri, Sat, Sun,
    ABC Company, 05/06/2022, Site 1, Job 1, 11, 11, 0, 11, 11, 11, 11,
    DEF Company, 05/06/2022, Site 2, Job 1, 11, 0, 0, 11, 11, 11 11
    GHI Company, 05/06/2022, Site 3, Job 4, 11, 11, 11, 0, 11, 0, 0,
    JKL Company, 12/06/2022, Site 2, Job 2, 0, 0, 0, 0, 0, 11, 0,

    To this:
    Company, Day, Location, Job Type, Hours,
    ABC Company, 30/05/2022, Site 1, Job 1, 11,
    ABC Company, 31/05/2022, Site 1, Job 1, 11,
    ABC Company, 01/06/2022, Site 1, Job 1, 0,
    ABC Company, 02/06/2022, Site 1, Job 1, 11,
    ABC Company, 03/06/2022, Site 1, Job 1, 11,
    ABC Company, 04/06/2022, Site 1, Job 1, 11,
    ABC Company, 05/06/2022, Site 1, Job 1, 11,
    DEF Company, 30/05/2022, Site 2, Job 1, 11,
    DEF Company, 31/05/2022, Site 2, Job 1, 0,
    DEF Company, 01/06/2022, Site 2, Job 1, 0,
    DEF Company, 02/06/2022, Site 2, Job 1, 11,
    DEF Company, 03/06/2022, Site 2, Job 1, 11,
    DEF Company, 04/06/2022, Site 2, Job 1, 11,
    DEF Company, 05/06/2022, Site 2, Job 1, 11,
    GHI Company, 30/05/2022, Site 3, Job 4, 11,
    GHI Company, 31/05/2022, Site 3, Job 4, 11,
    GHI Company, 01/06/2022, Site 3, Job 4, 11,
    GHI Company, 02/06/2022, Site 3, Job 4, 0,
    GHI Company, 03/06/2022, Site 3, Job 4, 11,
    GHI Company, 04/06/2022, Site 3, Job 4, 0,
    GHI Company, 05/06/2022, Site 3, Job 4, 0,
    JKL Company, 06/06/2022, Site 2, Job 2, 0,
    JKL Company, 07/06/2022, Site 2, Job 2, 0,
    JKL Company, 08/06/2022, Site 2, Job 2, 0,
    JKL Company, 09/06/2022, Site 2, Job 2, 0,
    JKL Company, 10/06/2022, Site 2, Job 2, 0,
    JKL Company, 11/06/2022, Site 2, Job 2, 11,
    JKL Company, 12/06/2022, Site 2, Job 2, 0,

    Example Reconfigure.xlsx

    Thank you in advance!
    Last edited by drewmorris12; 08-17-2022 at 11:52 AM. Reason: Solved

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    Maybe this:

    =LET(d,A2:D5,rd,ROWS(d),w,COUNTA(E1:K1),hr,INDEX(E2:K5,1+INT((SEQUENCE(rd*w)-1)/w),1+MOD((SEQUENCE(rd*w)-1),w)),CHOOSE({1,1,1,1,2},INDEX(d,1+INT((SEQUENCE(rd*w)-1)/w),SEQUENCE(,rd)),hr))

    which will spill the results across & down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Reconfigure Data to make it usuable

    Hi Glenn,

    Thank you very much - I have managed to get it so it is spilling down but it has created hundreds of columns all with N/A in after the initial 5 columns - any ideas?

    Thanks,

    Drew

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    I can not diagnose what I cannot see. However, double check ranges here in red:

    =LET(d,A2:D5,rd,ROWS(d),w,COUNTA(E1:K1),hr,INDEX(E2:K5,1+INT((S

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    Did you drag the formula across? It just needs to be entered in ONE cell.

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    I can not reproduce ANYTHING similar to your description. I will need to see what you've done.

  7. #7
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Reconfigure Data to make it usuable

    Apologies - here is the file: Example Reconfigure (full).xlsx

    Thanks Glenn!

    Best wishes,

    Drew

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    Infantile mistake by Yours Truly...

    caused by there being the same number of columns in the Agency/Date/Location/Job bit as there were rows in your sample data (both were 4). Now fixed.

    =LET(d,Sheet1!A2:D10,rd,ROWS(d),w,COUNTA(Sheet1!E1:K1),col,COUNTA(Sheet1!A1:D1),
    da,INDEX(d,1+INT((SEQUENCE(rd*w)-1)/w),SEQUENCE(,col)),
    hr,INDEX(Sheet1!E2:K10,1+INT((SEQUENCE(rd*w)-1)/w),1+MOD((SEQUENCE(rd*w)-1),w)),
    CHOOSE({1,1,1,1,2},da,hr))
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Reconfigure Data to make it usuable

    Thank you Glenn - in your file it has kept the 'Week End' value - is it possible to have this calculated i.e. it will know if the week end is 05/06/22 the Monday will be 30/05/2022, Tuesday will be 31/05/2022 etc.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    Many things are possible. But...

    Sheet 1 cols A:D, rows 1 & 2. These are exactly the same. They cannot both be for the same week?? can they????

  11. #11
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Reconfigure Data to make it usuable

    Unfortunately they can - I had removed the job.user column which would be the distinguishing feature.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    OK. Can I present the columns in a slightly different order (date immediately before hours)?

  13. #13
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Reconfigure Data to make it usuable

    Please do, there is no need to keep them in the order I have done

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    OK. A bit of tidying up, getting all the range definitions to the start, giving them (slightly) more memorable names, etc, etc. Check it carefully!!!


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    10-01-2019
    Location
    Shrewsbury, England
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Reconfigure Data to make it usuable

    Glenn - I cannot thank you enough - that has worked perfectly. I wouldn't have been able to do that in months let alone in a day so again thank you!

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Reconfigure Data to make it usuable

    It keeps the "little grey cells" active on a thundery afternoon.



    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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. Replies: 6
    Last Post: 05-10-2022, 02:42 PM
  2. [SOLVED] Reconfigure table results
    By Arran [BMI] in forum Excel General
    Replies: 7
    Last Post: 06-02-2020, 02:32 AM
  3. reconfigure default pasting formats
    By abstoler in forum Excel General
    Replies: 0
    Last Post: 03-08-2020, 05:37 PM
  4. Replies: 3
    Last Post: 05-22-2016, 06:30 AM
  5. [SOLVED] Converting text into usuable number
    By dbogey in forum Excel General
    Replies: 7
    Last Post: 03-21-2014, 09:38 AM
  6. Replies: 0
    Last Post: 03-08-2013, 06:34 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