+ Reply to Thread
Results 1 to 12 of 12

How to match the number then replace with value in Column B then sum

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    How to match the number then replace with value in Column B then sum

    Hello All,
    I'm trying to find the "number" in all ws then replace "number" by value in cell B then sum total at bottom of each row. Please see sample in attached.


    It's similar to my previous thread:
    http://www.excelforum.com/excel-prog...ml#post3869136


    Regards,
    tt3
    Attached Files Attached Files
    Last edited by tuongtu3; 10-30-2014 at 01:01 AM. Reason: SOLVED

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to match the number then replace with value in Column B then sum

    maybe
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to match the number then replace with value in Column B then sum

    Hi Nilem,
    That's perfect and thank you very much for your help.

    Regards,
    tt3

  4. #4
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to match the number then replace with value in Column B then sum

    Sorry for re-open the thread becuase the code is not what I expected:

    Hi Nilem:
    The code is not working because the value on column B is not alway greader by 4. the value in column B could be any number. Please take a look and advise if possible:

    maybe



    Please Login or Register  to view this content.
    Regards,
    tt3

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to match the number then replace with value in Column B then sum

    Hi tt3,
    try this
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to match the number then replace with value in Column B then sum

    Hi Nilem,
    The code work great but would you please modify a code to start searching "NUMBER" at column I and after and also the fn and Vale now is at Column B & C instead of A & B. Please take a look at sample in attached.

    Regards.
    tt3
    Attached Files Attached Files

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to match the number then replace with value in Column B then sum

    try
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to match the number then replace with value in Column B then sum

    Hi Nilem,
    Thank you very much for you time and help. The SUM from code is wrong b/c code does not sum any number in RED which they're not in column B. Please see sample in attached.

    Regards,
    tt3
    Attached Files Attached Files

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to match the number then replace with value in Column B then sum

    Hi tt,
    please check the attached file
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to match the number then replace with value in Column B then sum

    Hi Nilem,
    Sorry I forgot to mention there's text in cell "C:I" so when I tried your code it works if those cells are empty but if there are text filled in then it does not work. Can you take a look at sample in attached and see:

    Regards,
    tt3
    Attached Files Attached Files

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to match the number then replace with value in Column B then sum

    OK, try again
    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: How to match the number then replace with value in Column B then sum

    Hi Nilem,
    Thank you very much for your time and help.

    Regards,
    tt3

+ 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] Comparing 2 colums and if match replace or provide value from the other column
    By Dalton333 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-16-2014, 12:05 PM
  2. Replies: 0
    Last Post: 03-25-2014, 08:32 PM
  3. Replies: 1
    Last Post: 02-20-2014, 12:24 PM
  4. Replies: 9
    Last Post: 08-08-2013, 04:24 AM
  5. Replies: 4
    Last Post: 02-19-2013, 02:19 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