+ Reply to Thread
Results 1 to 4 of 4

Taking elements from a table dependant upon values

  1. #1
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Taking elements from a table dependant upon values

    Hello,

    I currently manage the spare parts at the company I work for. This includes ordering parts when required, based on when we expect to run out. I have created a sheet (as seen in the attached image) that calculates when we are expected to run out of a particular part based on the average monthly consumption, the current stock level, and how long it will take to receive a part from the factory.

    I have been asked to set up a separate sheet specifically for ordering parts, what I would like to know is if it is possible for me to pull parts of information from that table and place them in another, based on whether the reorder column (see image) says "yes" or "no".

    Thanks in advance for your help, any input would be greatly appreciated.
    Attached Images Attached Images
    Last edited by ormerods; 10-29-2011 at 06:45 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Taking elements from a table dependant upon values

    Assuming your table in A139 to K145, then in L139 enter formula

    =IF(K139="yes",count(L$138:L138)+1,"") and copy down.

    in M139 enter =MAX(L139:K145)

    In the other sheet, then

    =IF(ROWS($A$1:$A1)>'Sheet1'!$M$139,"",INDEX('Sheet1'!A$139:A$145,MATCH(ROWS($A$1:$A1),'Sheet1'!$L$139:$L$145)))

    copied down and across. Where Sheet1 is name of your database sheet.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Taking elements from a table dependant upon values

    Ok thanks very much for your help, I will try this at work tomorrow and let you know how I get on!

  4. #4
    Registered User
    Join Date
    10-27-2011
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Taking elements from a table dependant upon values

    works perfectly, thanks for your help.

+ 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