+ Reply to Thread
Results 1 to 14 of 14

Using Wildcards in Find & Replace

Hybrid View

  1. #1
    Registered User
    Join Date
    08-11-2007
    Posts
    51

    Using Wildcards in Find & Replace

    I'm doing a search simular to this

    =VLOOKUP(D*,Sheet2!A*:B*,2,FALSE)

    and I want it replaced with this

    =VLOOKUP(D3,Sheet2!A1:B42,2,FALSE)

    HOWEVER when I do the find & replace I don't want it to change whatever the current value is to D3 I want it to stay as whatever it was already....so how do I exempt the "D" value from the search??

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by uhcord98
    I'm doing a search simular to this

    =VLOOKUP(D*,Sheet2!A*:B*,2,FALSE)

    and I want it replaced with this

    =VLOOKUP(D3,Sheet2!A1:B42,2,FALSE)

    HOWEVER when I do the find & replace I don't want it to change whatever the current value is to D3 I want it to stay as whatever it was already....so how do I exempt the "D" value from the search??
    Hi,

    is D required, or can you succeed with Replace ,Sheet2!A*:B*,2,FALSE) with ,Sheet2!A1:B42,2,FALSE)

    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by uhcord98
    I'm doing a search simular to this

    =VLOOKUP(D*,Sheet2!A*:B*,2,FALSE)

    and I want it replaced with this

    =VLOOKUP(D3,Sheet2!A1:B42,2,FALSE)

    HOWEVER when I do the find & replace I don't want it to change whatever the current value is to D3 I want it to stay as whatever it was already....so how do I exempt the "D" value from the search??
    Hi
    Does this work

    =VLOOKUP(D?,Sheet2!A?:B?,2,FALSE)

  4. #4
    Registered User
    Join Date
    08-11-2007
    Posts
    51
    "D" is required for the formula to work, however I don't want ANY of that part of the formula to be replaced when I do the find command because the D values are in consecutive order, D1, D2, D3, because those are the cell that is being looked up and the A1:B42 will always be the same because it's the range table excel is looking in to find the result.

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by uhcord98
    "D" is required for the formula to work, however I don't want ANY of that part of the formula to be replaced when I do the find command because the D values are in consecutive order, D1, D2, D3, because those are the cell that is being looked up and the A1:B42 will always be the same because it's the range table excel is looking in to find the result.
    That was not my question.

    Can you succeed with Replace ,Sheet2!A*:B*,2,FALSE) with ,Sheet2!A1:B42,2,FALSE)
    or are there similar formula working on a column that is not D?

    ---

  6. #6
    Registered User
    Join Date
    08-11-2007
    Posts
    51
    Quote Originally Posted by Bryan Hessey
    That was not my question.

    Can you succeed with Replace ,Sheet2!A*:B*,2,FALSE) with ,Sheet2!A1:B42,2,FALSE)
    or are there similar formula working on a column that is not D?

    ---
    Worked like a charm, you my friend kick a$$.

  7. #7
    Registered User
    Join Date
    08-11-2007
    Posts
    51
    First off, let me thank all of you guys for your help. You rock.

    Now I'm going to contine to be a pest and ask another find & replace question.

    =IF(H*=I*,E*,0)

    Same scenario...the only value I want to utilize in the find & replace is this "I".

    I tried =I* and replacing with =I1..and it replaced every IF formula with I1 lol

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Perhaps you can do some sort of 3 way replace.

    First replace IF with something that won't appear anywhere in your formulas, e.g. "zzz".

    Then replace your I* as before

    Then replace "zzz" with IF......

+ 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