+ Reply to Thread
Results 1 to 3 of 3

using VBA Vlookup to replace cell values?

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    41

    using VBA Vlookup to replace cell values?

    For instance I have a column and a row

    Pet Name Pet Age Price
    Dog A 15 55
    Dog b 20 100
    Dog C 13 25
    Dog D 12 23


    So, I know how to use Vlookup and Match within VBA to retrieve the value, but How do I put the value back to the specific cell (where I grabbed it from).

    For instance, say I know that this spreadsheet is wrong, I want to decrease the pet age by 2 of dog A.

    I know how to retrieve the value 15 and deduct it by 2.

    But my question is,m how will I put the value deducted (13) back to that cell?

    Thank you!

    Kind Regards,
    Dinosaur1993

  2. #2
    Registered User
    Join Date
    09-21-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: using VBA Vlookup to replace cell values?

    anyone? Pls help me, thank you!

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: using VBA Vlookup to replace cell values?

    Hi.

    up load your file.
    read
    http://www.excelforum.com/excel-form...-vba-code.html
    http://www.excelforum.com/excel-prog...up-in-vba.html
    maybe help you.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

+ 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. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  2. Need to Replace Cell Values with Adjacent Cell Values
    By BYizz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-03-2012, 07:22 PM
  3. Replace values in cell
    By Oleg in forum Excel General
    Replies: 2
    Last Post: 12-11-2008, 07:26 AM
  4. Replace characters from cell values
    By Paul Martin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2005, 01:05 AM
  5. [SOLVED] Append Text to Cell Values Using Replace
    By Ngan in forum Excel General
    Replies: 4
    Last Post: 06-04-2005, 04: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