+ Reply to Thread
Results 1 to 4 of 4

Replace numbers in List 1

  1. #1
    Registered User
    Join Date
    01-09-2009
    Location
    powell, ohio
    MS-Off Ver
    Excel 1997
    Posts
    24

    Replace numbers in List 1

    I have 2 lists and need replace the numbers in List 1 if they appear in List 2. If they do not match to list 2 then keep the number in List 1. I have attached a excel worksheet as an example. So cell B4 needs to be replaced by Amount in Cell F9. Also Cell B7 needs to be replaced by number in F5. Can a formula be written to do this?

    Thanks
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Replace numbers in List 1

    Hi -

    You can place this formula in cell D4 and copy it down to D7 and it will pick the amount out of List 2 if the account number exists, or pick the amount in List 1 if the account number doesn't exist in List 2.

    =IF(ISERROR(INDEX($F$4:$G$15,MATCH(A6,$F$4:$F$15,0),2)),B6,INDEX($F$4:$G$15,MATCH(A6,$F$4:$F$15,0),2))

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,825

    Re: Replace numbers in List 1

    You could put this formula in D4:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and copy down. Fix the values in column D, then copy/paste into column B to overwrite the values there.

    Hope this helps.

    Pete

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Replace numbers in List 1

    This in C2 will give you your new list, but you can't put it in column B without using VBa.
    [EDIT]
    Or, as Pete suggests, Copy > Paste Special > Values
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Marcol; 06-14-2013 at 03:44 PM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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