+ Reply to Thread
Results 1 to 4 of 4

Searching for a string and input value

  1. #1
    Registered User
    Join Date
    04-12-2011
    Location
    Vermont
    MS-Off Ver
    Excel 2010
    Posts
    6

    Searching for a string and input value

    Hi Again All,

    I have come across one final problem with my worksheet which is attached...

    On the TakeOFF sheet, column C I need to have a seach for a string in the corresponding row of column B, depending on what that finds it needs to put in a different number value for each of the search strings.

    I thought I had accomplished this through a VERY nasty nested IF statement. Basically it searches for the following terms and inputs the corresponding number.

    Angle - 20
    Box - 24
    Channel - 40
    Flat - 20
    H-Beam - 40
    I-Beam - 40
    Pipe - 21
    HSS - 20
    Round Rod - 20

    Any help at all is appreciated! I'm so close!

    Thanks in advance
    Attached Files Attached Files
    Last edited by jalweber; 04-13-2011 at 01:56 PM.
    Justin

    The Dock Doctors, LLC

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

    Re: Searching for a string and input value

    Try:

    =LOOKUP(9.999999E+307,SEARCH({"Angle","Box","Channel","Flat","H-Beam","HSS","I-Beam","Pipe","Round Rod"},B4),{20,24,20,20,20,40,40,21,20})

    Note: the first array has to be in ascending alphabetic order.

    Make sure the corresponding numbers are correct in second array.
    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
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Searching for a string and input value

    Try this, not as elegant as NBVC but it might help to explain why your formula failed
    Please Login or Register  to view this content.
    Drag/Fill down

    You might be better off using lookup tables
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    04-12-2011
    Location
    Vermont
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Searching for a string and input value

    Again NBVC,

    Thank you greatly for all of your help. I finally have exactly what I am looking for my material takeoffs!
    Thanks so much!

    Thanks for your response as well, Marcol!

+ 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