+ Reply to Thread
Results 1 to 11 of 11

Text replacement formula - VLOOKUP?

  1. #1
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Text replacement formula - VLOOKUP?

    Hi everyone,


    I have attached a spreadsheet with what I am struggling with.

    I have a database with thousands of suppliers, either contracted or uncontracted. I have filtered all transactions with uncontracted suppliers (there may be many transactions followed one by one) - this is the left hand side of the spreadsheet.

    To the right I have identified the companies that I want to see as contracted. Thus, I need to change all cells in B column related to one company in accordance with its real status (taken from the right hand side).

    i.e. B2:B5 should change to "Contracted", as well as B12:B18 and so on.

    In this case I have done three companies to change (Wolf, Fox and Hare) but in reality there are hundreds.

    Hope you could help.

    File attached.


    Kind regards,

    Vladislav

  2. #2
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Re: Text replacement formula - VLOOKUP?

    Company Status Spend
    Fox Uncontracted £532
    Fox Uncontracted £525
    Fox Uncontracted £121
    Fox Uncontracted £87
    Bear Uncontracted £196
    Bear Uncontracted £97
    Bear Uncontracted £597
    Bear Uncontracted £28
    Bear Uncontracted £425
    Bear Uncontracted £449
    Wolf Uncontracted £358
    Wolf Uncontracted £692
    Wolf Uncontracted £345
    Wolf Uncontracted £558
    Wolf Uncontracted £83
    Wolf Uncontracted £176
    Wolf Uncontracted £672
    Hare Uncontracted £332
    Hare Uncontracted £931
    Hare Uncontracted £139
    Hare Uncontracted £480
    Hare Uncontracted £230
    Hare Uncontracted £51
    Lizard Uncontracted £339
    Lizard Uncontracted £175
    Lizard Uncontracted £574
    Lizard Uncontracted £829
    Lizard Uncontracted £860


    ________________________________

    Fox Contracted
    Hare Contracted
    Wolf Contracted

  3. #3
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Re: Text replacement formula - VLOOKUP?

    Sorry, no attachments allowed for some reason. Company is column A, status - B and spend - C

    I hope it does make sense but if not I am happy to elaborate further.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Text replacement formula - VLOOKUP?

    Yes, attachments are allowed!

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Re: Text replacement formula - VLOOKUP?

    Testing attachment
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Re: Text replacement formula - VLOOKUP?

    Thank you, AliGW, you are a star!

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Text replacement formula - VLOOKUP?

    And how does the result looks like?

    Please add this in the same file and post the file again.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  8. #8
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Re: Text replacement formula - VLOOKUP?

    Please see attached.

    So the info from little table should replicate to the big one. The little table's company names do not duplicate (unlike the main table) but wherever the company name from big table is identical to the little one, all the transactions with it must be switched from uncontracted to contracted.

    Hope that makes sense
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Text replacement formula - VLOOKUP?

    d2=IFERROR(VLOOKUP(A2,$F$1:$G$3,2,0),B2) and drag down.

    See the attached file.

  10. #10
    Registered User
    Join Date
    07-28-2016
    Location
    Chatham
    MS-Off Ver
    2016
    Posts
    93

    Re: Text replacement formula - VLOOKUP?

    oeldere, thank you very much indeed, case solved!

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Text replacement formula - VLOOKUP?

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Batch replacement of text.
    By ianyp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-06-2013, 11:05 AM
  2. Outlook Text Replacement Macro
    By 7hrowdown in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 10:14 AM
  3. [SOLVED] CSV text replacement
    By PQuayle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2013, 05:38 PM
  4. Replacement for Vlookup!!!
    By devpp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 08:41 AM
  5. Replacement method for 7+ IF statements? (tried VLOOKUP)
    By wenhao in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-31-2012, 10:04 AM
  6. Text Replacement
    By hayhursm in forum Excel General
    Replies: 1
    Last Post: 06-08-2009, 07:58 AM
  7. Text replacement with VBA Excel in several files
    By pieros in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 06-29-2005, 12:05 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