+ Reply to Thread
Results 1 to 12 of 12

How to assign a value w/inconsistent data

  1. #1
    Registered User
    Join Date
    02-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    How to assign a value w/inconsistent data

    Help, please.

    I have raw data from a supplier's excel catalog. They list an item's available sizes (in a column) in the following different values (and many others):

    S, S - M, S/M, S - L, S - 2XL, S/M - M/L, 2XL, 2XL - 3XL, 2XL - 6XL...

    You get the idea. Is there a good way to insert, look up, or assign the size values I want (S-XL,2XL,3XL,4XL,5XL,6XL) based upon the "Size Range" values they use?
    Or, alternately, a good way to sort or manipulate the data into a more look-up-able form?

    I've attached a file if you need more clarity.

    Thanks.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: How to assign a value w/inconsistent data

    See if this "AutoFilter" works for you..if not let me know, we might can do some fancier things if need be.
    See attached.
    Select the drop down arrow for your sizes and select a size. It will list all of the products with that particular size. I took the liberty of re-arranging the data to make the AutoFilter work(it doesn't like merged cells or spaces in the data).
    To see the whole list, go under Data/Filter/ShowAll

    You can sort by any of the dropdown arrows or combination of arrows
    Attached Files Attached Files
    Last edited by jwright650; 02-03-2011 at 05:03 PM. Reason: added comment
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  3. #3
    Registered User
    Join Date
    02-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to assign a value w/inconsistent data

    John,

    Thanks for the reply. The filters are definitely cool. I'd love to know how you get those in there.

    However... I need the catalog to be more of a static reference page that another workbook can draw the pricing info from. I need the other workbook to be able to parse the color groups and sizes simultaneously, in a meaningful way to calculate pricing OR find a way to get the catalog all set up ahead of time so that the workbook can do that.

    I could do it all by hand, but when pricing changes come, it would be VERY helpful if it can be at least semi-automated. Does any of that make sense?

    Thanks,
    h

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,163

    Re: How to assign a value w/inconsistent data

    Hi hermanexcel,

    I'm wondering if you are selling products, and have a Medium size Widget 3654, how you would look it up? The only sizes for this Widget is S-XL. Would listing every possible size for every product make your problem easier? The reason I ask is that these Sizes are not numeric or alphabetic and therefore very hard to lookup from Excel. Excel doesn't know if ML is between S and XL or if XL is between M and DXL.

    If you had an expansion of all possible sized it might make your lookup table a little larger (maybe 5 times bigger) but would allow exact lookup information. Then you could change the master file and do easy price changes and lookups for sales.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    02-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to assign a value w/inconsistent data

    Marvin,

    Yes, that's the whole thing. I do have a list of all possible size ranges (as the supplier calls them) I filtered that out of the raw catalog.

    Is there a way to insert column entries (XL, 2XL, 3XL, AND 4XL) for their entry XL-4XL? (In some at least SEMI-automated way.)

    Thanks,
    h

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,163

    Re: How to assign a value w/inconsistent data

    The problem is, we don't know how each manufacturer has their sizes labeled.

    Adding all sizes would be pretty much by hand, as you said there isn't a standard between manufacturers. If I was doing it myself, I'd get good with copy and paste keys. BUT - when you have a complete list, looking up single sizes going out the door might be more accurate. That being said, if you don't care about size then you may not need to list all sizes in separate rows.

  7. #7
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: How to assign a value w/inconsistent data

    Marvin,
    Can we use a LOOKUP function based on the criteria he has on Sheet2 in Cols "D:E"? to return all matches for a given size?

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,163

    Re: How to assign a value w/inconsistent data

    Hi John,

    There are certainly different ways to solve this puzzle. Here is how I imagine the problem. I'm selling a widget Number 10210 and as I put it in the shipping box I read it is a size M. I then need to find out how much to charge. I look and see there are two prices. 23.16 or 25.54 ? I look at the size chart and it shows S-XL and 2XL-3XL. Neither of these match to a M.

    To do an exact lookup I need an M in my database. If the last parameter on the Lookup function (Range_Lookup) is TRUE then we could do a relative lookup. That is, it would run through the range until it found the first value larger (number or alpha) and drop back to the one just before that. These size numbers and letters aren't alphabetical so that won't work.

    I think what is needed is a new sorting criteria for the VLookup function to tell when the size letter is larger if the TRUE parameter is used.

    This comes back to the question "Is M in the S-XL group or the 2XL-3XL group?".

    My suggestion was to make a bigger table that had all sizes listed so an exact match VLookup could be performed.

    All the above is complete imaginary on how the user may need to use Excel. If there was some method for leaving out the Size and/or Color criteria to do price lookups they could use that.

    I'm ready to be wrong on this answer, but believe with different standards on color and size this problem avoids a good formula to give back correct prices.

  9. #9
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: How to assign a value w/inconsistent data

    Quote Originally Posted by MarvinP View Post
    To do an exact lookup I need an M in my database. If the last parameter on the Lookup function (Range_Lookup) is TRUE then we could do a relative lookup. That is, it would run through the range until it found the first value larger (number or alpha) and drop back to the one just before that. These size numbers and letters aren't alphabetical so that won't work.

    This comes back to the question "Is M in the S-XL group or the 2XL-3XL group?".

    My suggestion was to make a bigger table that had all sizes listed so an exact match VLookup could be performed.
    He has done some of this work on Sheet2 regarding the sizes in Cols "A:B" and Since "M" falls into the category "1" ...I think we can use that as the Table to LOOKUP on Sheet1, but I'm concerned about the merged cells and gaps in the data which might give funky returns..ie some rows will not have a description because the description is only listed once in the first row of that item's data.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,163

    Re: How to assign a value w/inconsistent data

    Hi John
    I did see the table on sheet 2. Did you see on sheet 1 the prices based on colors too? What color is PFD anyhow? And, I'm not sure I'd know a color Neutral from White or Heather.

    This reminds me of the Auto Shop parts problem. Each manufacturer has thier own standard in marking their part. There is no standard (maybe it has changed since I taught Auto Shop?).

    Keep working on it and see if the user can group or limit prices based on product number, color and size. Maybe all they need is an AutoFilter to show their options and they choose from there?

  11. #11
    Registered User
    Join Date
    02-01-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: How to assign a value w/inconsistent data

    Thanks, guys.

    Yes. Marvin outlines the problem nicely. How do I lookup a value based on TWO values (size and color) that do not directly correspond to the mfr description?

    John, you're right in what I was trying to do on sheet 2. Is there a way to write a macro to go in and replace the values in cells containing "2XL - 3XL" with the value "3"... and then lookup based on that value in the size category (as long as we can make them correspond correctly?

    Of course, we'd have to do something similar to the color variables as well. One more thing about color probably better said now than later is that there will be a heirarchy. IF there is a "COLORS" value in that column, that would be the appropriate price for a color group 2. IF not, "HEATHERS" or "NEUTRALS" would be the right choices, in that order.

    Thanks so much for your help, guys.

  12. #12
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,163

    Re: How to assign a value w/inconsistent data

    Hi,

    I'm looking for the Questions in your above posts to try to answer them.
    1. I believe you need to fill in the blanks cells in Columns A and B (at a minimum) or your original data.
    2. After doing 1 try AutoFilters to see if it helps.
    3. If 2 doesn't help answer the question then start adding rows to specify each individual size and color.

    hope that helps.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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