+ Reply to Thread
Results 1 to 18 of 18

Complex auto fill or order sheet based on column values.

  1. #1
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Smile Complex auto fill or order sheet based on column values.

    Hi All!

    You guys have been great in the past in helping me learn and succeed. BUT, I have a really good one for you. I am not even sure what I am asking is possible...

    I have attached the worksheet. There are two tabs, the first an order sheet, the second with the values I need to auto-fill into the order sheet based on column headers.

    Each order broken down by Style #, Color #, size, and quantities on the second tab. The quantities need to auto fill in the the sheet highlighted in green area.

    The sizes are broken down into a key based on the values in column K.

    Example style 1698181 sizes are in row 10. So if I wanted to order 33 pieces of 1698181 in color 378 in size xxs then cell L12 should show 33 as the value.

    I am assuming there is some vlookup code you guys could write, and man if it is even possible I would die to see this one solved.

    Sorry if I over explained it a bit, any help would be greatly appreciated. I have titled the worksheet, The Enigma
    Attached Files Attached Files
    Last edited by forestavekids; 08-29-2016 at 01:56 AM. Reason: Moderator

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,032

    Re: Could I possibly stump you guys with this one?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Could I possibly stump you guys with this one?

    [ deleted ]
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    In D2 of sheet 1 put this formula and drag down

    =B2&C2&VALUE(A2)

    In the L11 put this and drag across and down to fill the green space

    =IFERROR(VLOOKUP($E11&L$10&$H11,Sheet1!$D$2:$E$374,2,FALSE),"")

    This works for the sizing options in row 10 but do you want it to work for any combination of sizing options?
    Last edited by Crooza; 08-29-2016 at 03:01 AM.
    Happy with my advice? Click on the * reputation button below

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Complex auto fill or order sheet based on column values.

    Try

    L11
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    Quote Originally Posted by shukla.ankur281190 View Post
    Try

    L11
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I tried this in L11, and dragged across and down. It only auto-filled a few of the quantities based off the other sheet.

    I attached my results.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    Quote Originally Posted by Crooza View Post
    In D2 of sheet 1 put this formula and drag down

    =B2&C2&VALUE(A2)

    In the L11 put this and drag across and down to fill the green space

    =IFERROR(VLOOKUP($E11&L$10&$H11,Sheet1!$D$2:$E$374,2,FALSE),"")

    This works for the sizing options in row 10 but do you want it to work for any combination of sizing options?
    I got more results with this way, but not all the quantities for style #'s in "sheet 1" are making it over.. I highlighted a few random ones I pulled.

    Between all the sizes, there should be about 2302 quantities.

    I attached your formula in my sheet
    Attached Files Attached Files

  8. #8
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    So one of the issues we will have is you have a list of sizes in your sizing table but the sizes aren't unique values. For instance there are size '2' in several different sizing rows so if the order sheet says size 2 which size 2 should it match to in your size table?

  9. #9
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    So if we deleted all sizes except:

    xxs, cs, s, m, l, xl, 0/3 3/6 6/12 12/18 18/24

    Would that make it work?

  10. #10
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    See attached, the only size ranges I need.
    Attached Files Attached Files

  11. #11
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    That's better but how do I treat an XXL as it exists in both sizing charts?

    [edit]
    and while you're at it why is there 2 x '3/6' in the same sizing row?

    How should the '2T' , '3T' etc in the order list be read in regards to size in your chart?
    Last edited by Crooza; 08-29-2016 at 08:26 PM.

  12. #12
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    Quote Originally Posted by Crooza View Post
    That's better but how do I treat an XXL as it exists in both sizing charts?

    [edit]
    and while you're at it why is there 2 x '3/6' in the same sizing row?

    How should the '2T' , '3T' etc in the order list be read in regards to size in your chart?
    Simplified the sizes a little more.. Does this work?
    Attached Files Attached Files

  13. #13
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    We're getting closer

    this in D1 gets a better match

    =B2&C2&VALUE(TRIM(SUBSTITUTE(SUBSTITUTE(A2,"t",""),"T","")))

    and this in L11

    =IFERROR(VLOOKUP($E11&L$10&$H11,Sheet1!$D$2:$E$460,2,FALSE),"")

    Of the 2770 garments in the order sheet 2158 are now matched. I added a 'one size' as you have a number of these in your order list but the style numbers in the order sheet don't all appear in the 'the enigma' sheet so there's no direct matches for these
    Attached Files Attached Files
    Last edited by Crooza; 08-30-2016 at 12:43 AM.

  14. #14
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    Quote Originally Posted by Crooza View Post
    We're getting closer

    this in D1 gets a better match

    =B2&C2&VALUE(TRIM(SUBSTITUTE(SUBSTITUTE(A2,"t",""),"T","")))

    and this in L11

    =IFERROR(VLOOKUP($E11&L$10&$H11,Sheet1!$D$2:$E$460,2,FALSE),"")

    Of the 2770 garments in the order sheet 2158 are now matched. I added a 'one size' as you have a number of these in your order list but the style numbers in the order sheet don't all appear in the 'the enigma' sheet so there's no direct matches for these
    Yes works a lot better.

    I did more work, added value "6/9 months" to the table, and changes all 3/6 values to include months. I also removed style #'s from Sheet 1 as they are not on this order guide.

    In total, on sheet 1 there are 2302 quantities. On the sheet enigma I have only gotten it up to 2166. Any idea's on how we can find out which styles have not made it over?

    See attached..
    Attached Files Attached Files

  15. #15
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    A very quick check showed you don't have any colour 15 in you Enigma sheet yet it is on your order sheet so that accounts for 4 items.

    I found a style match for each style and I found a match for each size but some of the sizes in the order sheet are entered with a trilling space like "xs " instead of "xs". I tidied this up in the formula (see attached for latest amendments).

    I'm now getting 2268 matches from the 2302 in the order sheet.

    While the size and the style combinations are all accounted for (because one is a vertical and one is a horizontal component of your matrix) I'm reasonably comfortable that we have those combinations covered but there may be missing colours (like the 15) and more so you may not have every colour and style combination as these are both listed vertically it requires a degree of repetition to get these right.

  16. #16
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    woops here's the file (see above post)
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    10-10-2015
    Location
    nj
    MS-Off Ver
    Office 2021
    Posts
    203

    Re: Complex auto fill or order sheet based on column values.

    So next question... I had to make changes to the size grid to match the vendor size grid (simply going to copy-paste quantities onto theirs when I am done on The Enigma).

    But I am losing a bunch of quantities when I put it in the proper arrangement.

    Why is this, I attached?
    Attached Files Attached Files

  18. #18
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Complex auto fill or order sheet based on column values.

    its getting a bit tricky using multiple lookup rows. I've tried with a few nested iferror statements. Is this what you want?

    =IFERROR(IFERROR(IFERROR(VLOOKUP($E11&L$10&$H11,Sheet1!$D$2:$E$374,2,FALSE),VLOOKUP($E11&L$6&$H11,Sheet1!$D$2:$E$374,2,FALSE)),VLOOKUP($E11&L$9&$H11,Sheet1!$D$2:$E$374,2,FALSE)),"")

+ 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. I have hit a stump with IF
    By FICSI in forum Excel General
    Replies: 2
    Last Post: 01-15-2016, 10:35 AM
  2. If and Sum ... possibly...!
    By Blake 7 in forum Excel General
    Replies: 6
    Last Post: 03-13-2015, 10:29 AM
  3. Simiples ... possibly
    By conan in forum Excel General
    Replies: 6
    Last Post: 12-24-2010, 04:55 AM
  4. Possibly Sum Product
    By -emma- in forum Excel General
    Replies: 4
    Last Post: 08-03-2010, 04:56 PM
  5. [SOLVED] Please help! - Possibly need a Macro?
    By Vertoobli in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-10-2006, 04:30 AM
  6. This'll stump you! Problem with Copy Sheet between Excel versions
    By tdw in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-09-2005, 12:06 AM
  7. [SOLVED] Did I stump everyone? Re: Counter that ignores hidden rows
    By TechMGR in forum Excel General
    Replies: 3
    Last Post: 04-05-2005, 04: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