+ Reply to Thread
Results 1 to 6 of 6

Build a mass-upload file

  1. #1
    Registered User
    Join Date
    12-10-2020
    Location
    Belgium
    MS-Off Ver
    365
    Posts
    3

    Build a mass-upload file

    Dear Excel Gurus,

    I need to build some sort of mass-upload file from a regular working file of mine. I've been thinking about how to approach the issue but cannot think of something clever (even though I'm fairly sure there must be some ways to do it relatively easily)

    The idea of the mass upload file is to structure the info like the attached excel file

    I can easily get the info in a Pivot Table-like structure where I'll get my respective P&L Line per Product Groups Per Month, but the P&L Line will be a column instead of a line (and will not be repeated each row)

    In my present case, lucky enough, the rest of the data (sales credit, company code, etc) is not changing so I could just drag the same value down from beginning to end. However I can easily foresee a scenario where I have multiple changing values to upload

    Any good tip or idea to build this upload file?

    Thanks already for your help!
    Kind regards to all
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Build a mass-upload file

    It would helpful if you supplied a file with your current structure. together with the new format, so that the formatting (formula or VBA) is correct.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Registered User
    Join Date
    12-10-2020
    Location
    Belgium
    MS-Off Ver
    365
    Posts
    3

    Re: Build a mass-upload file

    Hello John,

    I did upload an example file with the current structure / new structure needed. I cannot provide the original file because it contains confidential information

    I'd favor a formula-based approach too because I'm not very comfortable with VBA Even if I could copy-paste the solution I'd be quite unable to fix it if anything goes south

    Kind regards

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Build a mass-upload file

    O.K : how variable (maximum) is number of Product Group entries?

    And solution is only for columns G:J and 3 months of data.

    As I don't have 365, I'll leave the response to those who do as 365 has many useful functions not available to me with my old Excel!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Build a mass-upload file

    Example in Sheet2

    in C2

    =INDEX(Sheet1!$C$17:$C$19,MOD((ROWS($1:1)-1),3)+1)

    in G2

    =INDEX(Sheet1!$C$17:$C$19,MOD((ROWS($1:1)-1),3)+1)

    in H2

    =INDEX(Sheet1!$D$17:$L$19,MOD((ROWS($1:1)-1),3
    )+1,MATCH(Sheet2!$C2,Sheet1!$D$16:$L$16,0)+MOD((COLUMNS($A1:A1)-1),3))

    The highlighted 3 needs to be dynamic as it relates the number of items in Product Group

    It will help if you can provide sample files with confidential data removed.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-10-2020
    Location
    Belgium
    MS-Off Ver
    365
    Posts
    3

    Re: Build a mass-upload file

    Hello John,

    Thanks a lot for your solution
    I do have a greater amount of product groups, but I think I can make it work with the example you provided. It's a "good old" index(match())

    While I understand how the formula works & achieve the desired outcome, I'm not sure I understand precisely the logic behind using the "mod" function. Would you care to explain the thought-process behind it?

    Thanks again!

+ 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] Tutorial Needed: User upload xlsx file, read that file, write to table
    By PrimePorkchop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-30-2021, 10:50 PM
  2. Can you upload a file into Excel? - or alternative solution?
    By pinky24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2021, 04:35 AM
  3. Not able to upload file?
    By dgarber in forum The Water Cooler
    Replies: 5
    Last Post: 03-06-2019, 06:05 PM
  4. Not able to upload file?
    By dgarber in forum Excel General
    Replies: 0
    Last Post: 02-10-2019, 12:21 PM
  5. [SOLVED] cannot upload file
    By massive_set in forum Suggestions for Improvement
    Replies: 1
    Last Post: 01-14-2013, 03:52 AM
  6. Help to upload an OLB file
    By rroma in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2011, 10:20 AM
  7. [SOLVED] upload file name
    By choice in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-25-2005, 07:06 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