+ Reply to Thread
Results 1 to 5 of 5

Search multiple tabs for number in string

  1. #1
    Registered User
    Join Date
    10-27-2007
    Posts
    5

    Search multiple tabs for number in string

    Hi

    Hoping someone can assist me with the attachment. Have searched but unable to find exact solution. Have tried on the attachment but getting Ref.

    What I am looking for is a formula that will search Column I to find the following and pull just the number, problem is that this data is on various rows!

    "- 0 non qualifing agreements"
    "- 43 qualifying agreements"

    my problem is that there is no header for the data in column A on the individual tab sheets.

    There are 88 Tab sheets all with a unique number name.

    I have managed to pull using the tab name and the exact row as shown on the attached using this formula,

    =VALUE(MID('1015541'!I80,SEARCH("QUALIFYING",'1015541'!I80)-3,2))

    but I would prefer to use the formula below as my report has many more sheets and I have to do this for 4 quarters for 2 years!

    =VALUE(MID(INDIRECT("'"&$A3&"'!$I:$I$"),SEARCH("QUALIFYING",INDIRECT("'"&$A3&"'!$I:$I$I"))-3,2))

    If I am heading down the wrong route to solve my solution, I would appreciate any assistance to sort this out.

    Many thanks
    Caroline
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Search multiple tabs for number in string

    With this I tend to go to VB.
    This solution is straight forward. Extract the numbers in the worksheet by using mid() function.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-27-2007
    Posts
    5
    Thank you for the reply.

    I have never used VBA before! Have pasted it into vba worksheet "totals" but nothing seems to be happening.

    Please help.

    Thanks

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671
    Press Alt-F11
    Insert a module
    Copy Paste the Code
    Put the cursor somewhere in the code (between 'sub' and 'end sub'
    Press F5

  5. #5
    Registered User
    Join Date
    10-27-2007
    Posts
    5
    Thank you so much for helping me.

    Works perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. inputbox for simple verification purposes?
    By durandal05 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-08-2008, 06:03 PM
  2. Search multiple terms through excel
    By rich80 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2007, 03:33 AM
  3. Replies: 2
    Last Post: 03-15-2007, 04:20 AM
  4. Multiple string search in one cell
    By Dhruva101 in forum Excel General
    Replies: 3
    Last Post: 02-02-2007, 02:37 PM

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