+ Reply to Thread
Results 1 to 10 of 10

complicate chemical inventory drop down reference.

  1. #1
    Registered User
    Join Date
    02-17-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    complicate chemical inventory drop down reference.

    I am stuck with an odd one.
    I'm running excel 2010.
    I have all the chemicals in my warehouse in column A A2:A120.
    I have each chemicals corrisponding LOT #s in D column D2:D120.
    If we are temporarily out of a chemical we obviously don't have a lot #.
    Lot #s are a series of alpha numerics.
    I'm trying to make a seperate list starting at A121 which is a repeat of all chemicals listed above which have lot #s associated with them.

    So if A2 is CaCl2 and we have it in hand D2 will have the Lot filled out and A121 will also say CaCl2.

    A2 may say Calcium hydroxide but we are out so we delete it's lot. A3 may say Liquid nitrogen which we have on hand and so it does have a lot # in D3.

    So A121 says CaCl2 and A122 says liquid nitrogen.

    Any help would be appreciated.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: complicate chemical inventory drop down reference.

    You need to use an Array formula (use CNTRL SHFT Enter instead of ENTER. You'll see brackets {} appear around your formula)

    In A121
    =INDEX($A$2:$A$120,SMALL(IF(LEN($D$2:$D$121)>0,ROW($D$2:$D$121)-1,100000),ROW(A1)))
    copied down
    Questions?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-17-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: complicate chemical inventory drop down reference.

    Delete see below
    Last edited by russader; 02-17-2013 at 07:30 PM.

  4. #4
    Registered User
    Join Date
    02-17-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: complicate chemical inventory drop down reference.

    Well I'm stuck out of town now for a few days. I only have an old laptop now with excel 2003. Will this be backwards compatible? If not Why and what would it take to make it so?

    Edit: Trying it in 2003 seems to make A121=A2 but none of the othe cells below it do anything.

    If I remove the lot # in D2... A121 does jump to = A5, the next chemical on hand, but still nothing below that.
    Last edited by russader; 02-17-2013 at 07:19 PM.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: complicate chemical inventory drop down reference.

    It is backward compatable. Are you entering the formula using CNTRL SHFT ENTER?

  6. #6
    Registered User
    Join Date
    02-17-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: complicate chemical inventory drop down reference.

    Every time I try it I get the same result. A121=A5.
    A5 is the first chemical on hand.
    A9 is the next.6
    The longest spacing between chemicals on hand (those with lot #s) is 12.
    Only A121 registers a chemical. And yes, I did hit ctrl+shift+enter.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: complicate chemical inventory drop down reference.

    Here's a working example. To upload a spreadsheet (Go Advanced>Manage Attachments)
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: complicate chemical inventory drop down reference.

    Here it is saved as a 2003
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    02-17-2013
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: complicate chemical inventory drop down reference.

    Wow I feel dumb. This worked heat. Thank you so much.

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: complicate chemical inventory drop down reference.

    Did you figure out what you were doing wrong?

+ 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