+ Reply to Thread
Results 1 to 12 of 12

Need help with a formula that will search my spreadsheet and display the results elsewhere

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    6

    Need help with a formula that will search my spreadsheet and display the results elsewhere

    Hello all,

    I have been racking my brain pretty hard trying to figure this one out - I'm definitely an excel rookie.

    Basically what I have is a spreadsheet with three columns that the business I work for uses to track our tool inventory. The three columns are: Tool Description, Serial #, and job number. When a tool is checked out to a job site, the appropriate job # is placed next to each tool.

    What I would like to do is have a separate sheet where I can type in the job # and have it populate a list of all tools currently assigned to that particular job.

    I appreciate any advice you all can give me!

    Thank you,
    Chris

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Hi Chris & Welcome to the forum,

    For a formula...

    Three columns on sheet4 and results along with job # on sheet5...

    Please Login or Register  to view this content.
    Copy down as far as possible needed...

    IMPORTANT
    This is an array formula
    Enter the formula >> press F2 then >> CTRL + SHIFT + ENTER
    If entered correctly, the formula will be enclosed in {brackets}
    Do not enter the {brackets} manually
    Attached Files Attached Files
    Last edited by jeffreybrown; 01-15-2013 at 11:58 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Unbelievably fast! Can't thank you enough Jeff!

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    You are very Welcome Chris and thanks for the feedback.

  5. #5
    Registered User
    Join Date
    01-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Another quick question here -

    Would it be difficult to populate sheet5 with both the item description and serial #?

    Also, I tweaked the code a bit as the tool inventory contains roughly 500 items. I'm having a hard time trying to figure out why only a portion of the tools assigned to a particular job are populating on sheet5. If job 123 has 20 tools assigned, only the first 7 are showing up when I search that particular job #.

    =IFERROR(INDEX(Sheet4!$A$2:$A$500,
    SMALL(IF(Sheet4!$C$2:$C$500=$A$1,ROW(Sheet4!$C$2:$C$500)-1),ROW(A1))),"")

    Again, all help is greatly appreciated

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Hi Chris,

    It would help if you provided us a sample worksheet...

  7. #7
    Registered User
    Join Date
    01-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Tools-Sample.xlsx

    No problem at all, here it is!

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Hi Chris,

    My first question, for the 3-Way Plug, all of them have the same serial #, but will that not be the case in the real file?

  9. #9
    Registered User
    Join Date
    01-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    That is correct - I just plugged in a random number. Each serial number will be unique

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Hi Chris,

    Seems the best solution is to add something to each tool to make it unique, so I added the count in parenthesis to each tool.

    Now we can use Index/Match to return the serial number.

    Let me know if this works for you...
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-15-2013
    Location
    Arizona
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    That is perfect - you are the man Jeff! You have saved me from many headaches!

  12. #12
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with a formula that will search my spreadsheet and display the results elsew

    Again Chris, glad to have helped.

+ 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