+ Reply to Thread
Results 1 to 6 of 6

Including destination cell value in a formula

  1. #1
    Registered User
    Join Date
    03-28-2009
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Including destination cell value in a formula

    Hello,

    Hope someone could help. I have the following problem:

    There is a big range of cells with normal numbers (ex. 100, 150 .. etc), but I need to convert them in the following formulas that give the same numbers as a result: for example if the cell value is 100, I need to convert it in =if(iserror(100);0;100) and so on with all other values. Is it possible this to be done automatically for all cells?
    Thank you in advance!
    Last edited by Alko_Holik; 03-28-2009 at 07:56 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Including destination cell value in a formula

    Welcome to the forum.

    Literal numbers are not errors, so doing that wouldn't accomplish anything.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-28-2009
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Including destination cell value in a formula

    I know this is absolute non sense and don't know why I am asked to do this. Someone before me has filled the table like this and I am supposed to continue, but can't really find a way to do it except manual typing, which would take weeks.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Including destination cell value in a formula

    1. In B1 and copy down, ="=if(iserror(" & A1 & "), 0, " & A1 & ")". Change commas to semicolons if appropriate.

    2. Select column B, copy, Edit > Paste Special, Values

    3. With column B still selected, Data > Text to columns, Finish.

  5. #5
    Registered User
    Join Date
    03-28-2009
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Including destination cell value in a formula

    It works. Thank you very much!!!

    You saved me a great headache !

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Including destination cell value in a formula

    You’re welcome. Would you please mark the thread as Solved?

    Click the Edit button on your first post in the thread

    Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes

+ 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