+ Reply to Thread
Results 1 to 8 of 8

Matching Data with set requirements

  1. #1
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Matching Data with set requirements

    Hi Experts,

    I have a spreadsheet that is capable of assigning names to postcodes based on set requirements but I have now come to a point where I need to reduce the input by users. is it possible to create a formula that works in three stages

    Stage 1 - Identify which company (Column D) is working in the postcode given (Column B)
    iferror(VLOOKUP(C7,(INDIRECT("'" & B7&"'!$A:$L")),9,FALSE),"") is the formula I used to look at
    each companies page

    Stage 2 - Looking at the Companies individual sheet (ie where CO 1 is listed, look at sheet CO 1), Identify which staff members
    are available by them having an X in the day of the week that matches sheet AUTO ASSIGN CONTROL (in this instance Friday)

    Stage 3 - Match the names available to the relevant postcodes, my previous formula required
    4 sleeper columns using range F:I, the formula in Column E was then able to use one of the 4 names
    without duplicating names

    This sheet has come along way but I need extra input, I have attached the file and in yellow I have manipulated the data where the new formula should be but I can not seem to solve it.

    Any input would be great
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Matching Data with set requirements

    This was fun to put together. And by fun I mean hard.

    F3:
    Please Login or Register  to view this content.
    This is an array formula confirmed with Ctrl+Shift+Enter.

    Copy over and down as needed.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Re: Matching Data with set requirements

    Oh My DAYS!!!!!!!!!! you say hard but replied within the hour and I have spent DAYS trying this one on my own, in fact it took 3 hours stripping back the original data.

    seriously though THANK YOU

    It worked a charm and I am now rebuilding the website accordingly, I will keep you posted.

    Thanks Again

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Matching Data with set requirements

    No problem. We love a good challenge.

    I got to use ROW() to return an actual array, which I don't think I've ever done intentionally before this. Good times.

  5. #5
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Re: Matching Data with set requirements

    Cool, I managed to extend the range and add all the additional tabs that make up the rest of the companies and it is working producing a 70-80% match which is Ideal, however I can not seem to get one company to register any result despite from what I can so no logical reason why not the tab is NWG and they have postcodes assigned but it does not reveal any matches.

    Any Ideas?

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Matching Data with set requirements

    Check tab NWG, L146:L173.

    You'll see the issue.

  7. #7
    Forum Contributor
    Join Date
    05-27-2014
    Posts
    141

    Re: Matching Data with set requirements

    (hitting head against the wall) thank you

  8. #8
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Matching Data with set requirements

    Here's two quick tips on troubleshooting arrays:

    First, use Alt+Enter when writing long formulas, with liberal use of SpaceBar. It keeps things clean, lined up, and easy to read.

    Please Login or Register  to view this content.
    becomes
    Please Login or Register  to view this content.

    Next, when something isn't working out highlight a nested expression in the formula bar and hit F9.

    For example, looking at the formula above we can start at the first INDIRECT statement after the SMALL(IF.

    I highlight just the "'"&$E10&"'!I2:L150" and hit F9 and get "'NWG'!I2:L150". Okay, that looks good.

    I evaluate INDIRECT("'NWG'!I2:L150")=$D10 next and get:

    Please Login or Register  to view this content.
    Well gee, that's an eyesore. To tighten that up we can add a little *1 to the end and evaluate again, because exposing an operator to TRUE and FALSE coerces them into 1 and 0.
    That's literally what SUMPRODUCT is doing anyways with multiplying the expressions times each other.

    So, I take that mess above, add *1 just outside the }, highlight the whole mess and hit F9 again.

    Please Login or Register  to view this content.
    So much easier to read. 0 is all the Failed Criteria, 1 is the Met Criteria, and woah we have some errors there at the end.
    From there I hit Escape (note, we've never hit Enter yet so all this F9 business is temporary) to revert to what we started with. Then I went to the source data of "'NWG'!I2:L150" and examined it.
    Last edited by daffodil11; 01-29-2015 at 12:11 PM.

+ 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] Spliting a line of data into two lines in order to fill other requirements
    By PatrickDC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 01:20 AM
  2. Need to organize data based on requirements....explained below
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2013, 06:16 PM
  3. Replies: 8
    Last Post: 08-29-2013, 06:40 PM
  4. Link Partial Data To Cell If Data Meets Requirements
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-20-2012, 10:47 AM
  5. EXCEL data worksheet requirements
    By gurp99 in forum Excel General
    Replies: 5
    Last Post: 08-09-2010, 02:42 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