+ Reply to Thread
Results 1 to 6 of 6

How to automatically change the value of undefined to 0?

  1. #1
    Registered User
    Join Date
    03-25-2008
    Posts
    24

    How to automatically change the value of undefined to 0?

    Hi guys.

    say i have 3 columns. the formula of my last column is 2nd column/1st column x 1000. (2nd column divided by 1st column times 1000) hence, if the value of my 1st column is 0, the 3rd column will be undefined. How do i make the value of the 3rd column be 0 if it happens to be undefined?

    Thanks in advance!

    Cheers,
    Rukia

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi,

    If(iserror(your formula),"0",Your formula)

    e.g.

    =IF(ISERROR(B1/A1),0,(B1/A1)*1000)

    Ed

  3. #3
    Registered User
    Join Date
    03-25-2008
    Posts
    24
    wow cool!

    thanks a lot ed!

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    No Problem.

    Thanks for the feedback

    Ed

  5. #5
    Registered User
    Join Date
    03-07-2012
    Location
    Penang, Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    1

    How to automatically change the value of undefined to 0?

    Hi,
    Can you please help me out on how to deal with this formula on my excel.
    I want the cell that has (0.0/0.0)*100 to return 'o' and 3.4/0.0 to return 'undefine' in a long string of column.
    Please, kindly help me out on how to write the formula. It is very urgent.
    Thanks

  6. #6
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: How to automatically change the value of undefined to 0?

    @ folasemire

    Welcome to the forum. Also please read the forum rules.

    Rule #2

    2. Don't post a question in the thread of another member -- start your own. If you feel it's particularly relevant, provide a link to the other thread.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

+ 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