+ Reply to Thread
Results 1 to 6 of 6

Vlookup Add Multiple instances of same string

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

    Vlookup Add Multiple instances of same string

    Hi All,

    New to the forums and not all that great with Excel...I'm uploading a sample project that I will reference here...

    What I need to do is have a specific string tested for and find ALL instances of it. After I have found all instances I need to take a value in the same row from each instance and add them all together...

    Does anyone know if I can do this with vlookup or is it going to become a more intense problem to fix?

    In my example sheet I have a sheet named STEEL that is the formulating sheet. Currently I am testing it on just the 10x20 B sheet but would like to combine it to include 10x20 A&C as well as Gangway, etc... You will see a couple of lines started but I can't figure how to get it to return multiple values or even if that is possible

    Any help is greatly appreciated!

    Thanks,
    Justin
    Attached Files Attached Files
    Last edited by jalweber; 04-13-2011 at 08:18 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: Vlookup Add Multiple instances of same string

    If you list your sheetnames in a separate area, like J2:J8, then enter a formula in B1 like:

    Please Login or Register  to view this content.
    and copy down.

    This automatically takes out the last word (like "Angle" from each of the cells in column A and looks for a match)...

    If you wanted the word to be part of the match (you'll get alot of 0's) then:

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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
    04-12-2011
    Location
    Vermont
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup Add Multiple instances of same string

    NBVC,

    I think this solves my problems, with a little tweaking I realized that I need to calculate the lengths indiviually on each sheet because they vary for each part and then have your formula search and return the sum of the lengths.

    THANK YOU VERY MUCH! If you don't mind me asking, what exactly is that line of code doing? I'm nosy and like to know whats going on in my code...

    Thanks again!

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

    Re: Vlookup Add Multiple instances of same string

    If you would be so kind, I do have another question/problem now that I have that figured out... I have attached my updated file.

    On the TakeOFF sheet I would like it to populate itself with the description and total length of only items greater than 0.00 from sheet 'Steel'. I'm kind of a newbie when it comes to programming with Excel, so again any help would be greatly appreciated!

    Thanks in Advance!
    Attached Files Attached Files

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

    Re: Vlookup Add Multiple instances of same string

    Do you mean as attached?

    In TakeOff sheet, A4:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER (this is a special ARRAY Formula).

    In B4:

    Please Login or Register  to view this content.
    confirmed with CTRL+SHIFT+ENTER not just ENTER (this is a special ARRAY Formula).
    Attached Files Attached Files

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

    Re: Vlookup Add Multiple instances of same string

    Wow, thank you very much for the quick responses! You have made my life 100 times easier today.
    Hopefully someday I can provide help to someone as well.
    I'm marking this as solved, thanks so much!
    Justin

    The Dock Doctors, LLC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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