+ Reply to Thread
Results 1 to 12 of 12

IF function, remain the existing information unchanged when statement is false

  1. #1
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    IF function, remain the existing information unchanged when statement is false

    when I am using IF function, if the statement is false, I want that cell remain the existing information unchanged.
    how can I do this?

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF function, remain the existing information unchanged when statement is false

    don't put any value in the false area(do nothing)


    =IF(B1="",1+2,B2)

    or is there anything else you can elaborate more if possible.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: IF function, remain the existing information unchanged when statement is false

    Hi,Sir.
    Actually, my problem is that I want to update information from "sheet 1" to "sheet 2" base on the same number and item.
    what am I doing now is: I copy number from sheet 1 and find it in sheet 2.
    then I update information in sheet 2, column W to AG.
    I need to do it for every part number in sheet 1 repeatively. It is very tedious.
    So I want to find a way that can auto this process
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF function, remain the existing information unchanged when statement is false

    none of your numbers match between the 2 files. IF there were any matches, the following formula would return the info you want...

    =VLOOKUP($N2,'[sheet1.xlsx]Inbound-PGR-Done'!$A$2:$W$39,COLUMN(W$1)-13,FALSE)

    adjust ranges and file names as needed
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF function, remain the existing information unchanged when statement is false

    duplicate post (by me) - deleted

  6. #6
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: IF function, remain the existing information unchanged when statement is false

    Hi,sir, where should I put this formula in?
    could you put this formula inside the excel sheet then show me?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF function, remain the existing information unchanged when statement is false

    I put that in sheet2 file, cell W2. copy it down and across

  8. #8
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: IF function, remain the existing information unchanged when statement is false

    Actually in sheet 2, there are lots of data between W to AG column. I just want to make sure all data from sheet 1 is updated to sheet 2. however, remian other data unchanged in sheet 2 W to AG column, is there a way to do this ?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: IF function, remain the existing information unchanged when statement is false

    then just copy that down in the columns you need

  10. #10
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: IF function, remain the existing information unchanged when statement is false

    sometimes I need to update 100+ numbers, it is very tedious, is there a way can auto this process?

  11. #11
    Registered User
    Join Date
    12-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    66

    Re: IF function, remain the existing information unchanged when statement is false

    Any one could help me on problem in #3.
    I am stuck for very long time. thank you so much.

  12. #12
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: IF function, remain the existing information unchanged when statement is false

    Look at post #4

+ 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