+ Reply to Thread
Results 1 to 4 of 4

Probably a simple question for most of you!

  1. #1
    Registered User
    Join Date
    02-05-2007
    Posts
    3

    Probably a simple question for most of you!

    Can someone help , i will try to explain what i need as simply as possible.

    I have a worksheet with multiple columns with each different record being entered on a new row within the worksheet.
    I.e.
    Column A - Room Name
    Column B - Room Length
    Column C - Room Width
    Column D - Room Area (auto calculated using =B*C)

    What i need is for the auto calculated formula to be used all the way down the column i.e. each row has the same formula to work out the row entered Length and Width

    Problem is , when the rows have nothing entered in them , i.e. the user hasnt used the particular row , column D formula gives the error #DIV/0! when using a complex formula or the value 0.00 when using a simple formula like B*C. (I take it that Excel thinks that a blank cell has a value of 0.00)

    Basically what i need to know is , if it possible to "activate" the formulas ONLY when the data that it needs has been entered . i.e. if no B or C field has been entered then the formula in field D is not activated and the cell is left blank.

    If you are still with me and you know the answer then thank you for any help you can give.

    Ray

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try

    =IF(ISERROR(B2*C2),"",B2*C2)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    02-05-2007
    Posts
    3
    Perfect , this does the trick - fantastic support , cheers

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No problem

    Glad it helped

    VBA Noob

+ 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