+ Reply to Thread
Results 1 to 12 of 12

Working but not Working Function

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Ann Arbor
    MS-Off Ver
    Excel 2010
    Posts
    62

    Cool Working but not Working Function

    I am attaching a File and is working with the Dummy Data but not with Actual Data

    So what you're going to see is that you can select a product, the product number will change accordingly and you will get a list of "Storage Groups"

    So it works...until I add the Actual data to the "Storage Group List" The only difference is that you will get a Storage Group name that it could contain 25 characters, or it may contain dashes or Underscores.

    Example of a storage Group name: AFgtrs_23tf-54 01-or53

    So I am giving up on this function. I am hoping to get this done thru VBA.... Can anyone take a quick peak?

    Thx... J

    DevFile.xlsx

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Working but not Working Function

    I *think* the issue is that you are not compensating for your referenced range beginning in Row_2
    Try this ARRAY FORMULA (completed with CTRL+SHIFT+ENTER)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy E9 and paste into E10:E506

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Working but not Working Function

    Hi,

    Don't give up yet!

    Question: where am I to add this example of a real Storage Group name: (AFgtrs_23tf-54 01-or53) in order to reproduce the error you are experiencing?

    I replaced the entry in cell K2 of the StorageGroups tab (i.e. the first in the Data Validation list) and no errors were produced - can you clarify?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    04-02-2013
    Location
    Ann Arbor
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Working but not Working Function

    Nope

    When I Copy and Paste, I get one initial value but the moment I convert it to an Array it goes back to "No Value"

    It is the weirdest think I ever seen in excel. Just an FYI I even created a new sheet from scratch to make sure that i had a clean slate.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Working but not Working Function

    You'll need to post a sample workbook that exhibits the problem.

  6. #6
    Registered User
    Join Date
    04-02-2013
    Location
    Ann Arbor
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Working but not Working Function

    XR LX

    AFgtrs_23tf-54 01-or53 will go under the Storage Group Tab under SG ... the data usually contains about 15 to 30 characters

    in my data list I have like 2000 of them so from C:2 to C:2002

  7. #7
    Registered User
    Join Date
    04-02-2013
    Location
    Ann Arbor
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Working but not Working Function

    Sence i can share the Data ... My Scinceir apologies ....is there a way to do this in VBA?

  8. #8
    Registered User
    Join Date
    08-13-2013
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Working but not Working Function

    Hi
    I agree with Ron that reference has been slipped, but I differ for the position of the -1
    Please Login or Register  to view this content.
    I corrected it and if you use Adobe as a product you'll see that the first product is not cable is home.

    Remember to Ctrl+Shift+Enter

  9. #9
    Registered User
    Join Date
    04-02-2013
    Location
    Ann Arbor
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Working but not Working Function

    This

    =IFERROR(INDEX(StorageGroups!$C$2:$C$3000,SMALL(IF(StorageGroups!$E$2:$E$3000=$C$6,ROW(StorageGroups!$E$2:$E$3000)),ROWS($E$9:$E9))-1),"No Value")

    It didn't work ...

  10. #10
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Working but not Working Function

    Comments removed
    ...it appears that both our formulas will do the same thing...return the matched row number minus 1
    Last edited by Ron Coderre; 08-13-2013 at 11:28 AM.

  11. #11
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Working but not Working Function

    We can't offer a confident solution if we don't really know what's happening. Your formula doesn't seem to have a text-length limit and "Didn't work" is a bit vague.
    Can you post your sample workbook again...but with changes that demonstrate the problem?

  12. #12
    Registered User
    Join Date
    08-13-2013
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Working but not Working Function

    Hi

    I'm supposing it didn't work for the actual data but it does has corrected one mistake, am I right?.

    As you can't share the data then I would answer to your question: yes that it can be done with VBA, but I suspect maybe you're having troubles with whitespaces or trash characters. Before creating a VBA procedure I would suggest that you make a little bit of cleaning your databse with functions
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    .

    Plese tell me if this helps, if not give a little bit of time and I'll create a simple procedure template.

+ 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. Correct/Working (Index,Match) formula not working between cells
    By barnerd in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 02-11-2014, 01:20 PM
  2. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  3. Replies: 2
    Last Post: 08-17-2012, 08:16 AM
  4. Replies: 2
    Last Post: 08-01-2012, 11:53 AM
  5. Replies: 1
    Last Post: 01-26-2005, 04:20 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