+ Reply to Thread
Results 1 to 5 of 5

How to replace / subsitute using index / match?

  1. #1
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60

    How to replace / subsitute using index / match?

    Hi All,

    I am looking to create a formula that can replace an existing number in a table with a new one without having to manually overtype it. I have used an INDEX / MATCH formula to locate the current amount or number in that particular month by supplier but can't go any further. I have attached a basic overview of this so in this example the idea would be for the number in cell K6 to be able to replace the existing number of £50 for Jon Smith in January for example. If I then say select BMP in February the formula would again have to replace this.

    Hope this makes sense?

    Many thanks,
    Gazsim.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to replace / subsitute using index / match?

    Formulas cannot replace data, you need VBA for that.

    A cell can contain a value or a formula, not both.
    So if your cell has a value in it already it cant have a formula as well which would effectively change the value which is what you want.

    Formulas can read other cells but not change them which mean you could create a Helper column (a new column) with a formula to produce the value you want.
    But you would have to direct any users to use the Helper column NOT the original cell column which would still contain its original value.

    Or you can use VBA to change the value of a cell.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to replace / subsitute using index / match?

    ??? If you overtyype D4 with 150, K4 updates. if that is not what you want, what DO you wnat????
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: How to replace / subsitute using index / match?

    You'll need to use VBA.
    With formulas if you replace original value, the formula will recalculate.
    In fact, you'll get circular reference error.
    1. Click on the * Add Reputation if you think this helped you
    2. Mark your thread as SOLVED when question is resolved

    Modytrane

  5. #5
    Registered User
    Join Date
    12-14-2018
    Location
    Staffordshire, England
    MS-Off Ver
    365
    Posts
    60
    Thanks all. I’m definitely no expert on VBA so if anyone else can assist any further it’s appreciated?

    Gazsim

+ 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. [SOLVED] INDEX MATCH with MID or REPLACE
    By Emile du Toit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2017, 02:29 PM
  2. [SOLVED] using Index match in replace of vlookup
    By srinivasan1965 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2016, 07:58 AM
  3. Subsitute or Find/Replace words in a phrase
    By Crhodes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 09:13 PM
  4. Match and replace with index
    By prayami in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-26-2011, 08:51 PM
  5. Advice on How to Subsitute/Replace a Text or Number
    By meyero90 in forum Excel General
    Replies: 3
    Last Post: 08-09-2010, 12:53 PM
  6. Replace #N/A using Index Match function
    By karstens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-01-2006, 03:04 PM
  7. index/match/replace
    By InventoryQueryGuy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-13-2006, 11:10 AM

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