+ Reply to Thread
Results 1 to 7 of 7

preventing ref errors

  1. #1
    Registered User
    Join Date
    10-24-2014
    Location
    CO
    MS-Off Ver
    Excel Windows
    Posts
    7

    preventing ref errors

    I am using the attached list and I want to calculate the total picked up revenue in B9 by utilizing the formula: =(B13*D13)+(B14*D14)+(B15*D15)

    However, sometimes we will need to delete row 14 for example and then the above formula shows a ref error. How can I rewrite this formula to avoid the ref error from occuring.

    I have made this much simplier and in truth I will have a very long list of room names in which I will be deleting rows at random.

    Thank you!
    Cate
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: preventing ref errors

    Replace

    =(B13*D13)+(B14*D14)

    With

    =SUMPRODUCT(B13:B14,D13:D14)
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    10-24-2014
    Location
    CO
    MS-Off Ver
    Excel Windows
    Posts
    7

    Re: preventing ref errors

    thank you!

  4. #4
    Registered User
    Join Date
    10-24-2014
    Location
    CO
    MS-Off Ver
    Excel Windows
    Posts
    7

    Re: preventing ref errors

    Also is there away in the above spreadsheet to add a column in the table that automatically calculates the number of nights they stay based on the inputted arrival date (column C) and departure date (column D)

  5. #5
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: preventing ref errors

    = DepartureDate - ArrivalDate


    Format it as a number, it will probably default to Date Format which will give you something like "Jan-5 1900". Changing to Number will give you 5.00 in that scenario.

  6. #6
    Registered User
    Join Date
    10-24-2014
    Location
    CO
    MS-Off Ver
    Excel Windows
    Posts
    7

    Re: preventing ref errors

    thank you agan!

  7. #7
    Registered User
    Join Date
    10-24-2014
    Location
    CO
    MS-Off Ver
    Excel Windows
    Posts
    7

    Re: preventing ref errors

    Hopefully the last question...

    When the room type is selected in column H, I need the total number of picked up room nights for that type of room to calculate in the Picked Up Room Nights column (E) for that room type.

    In the attached example, the guest has chosen a DTB 1 Queen Standard NUR for 9 nights. In cell E12 the number 9 needs to populate not 1.
    Attached Files Attached Files

+ 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] Help preventing N/A errors
    By tlacloche in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-09-2014, 01:26 PM
  2. Preventing the display of divide by zero errors.
    By Determined in forum Excel General
    Replies: 6
    Last Post: 04-18-2007, 09:58 PM
  3. Excel Throwing Circular Errors When No Errors Exist
    By MDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2006, 09:20 AM
  4. Preventing errors
    By koit in forum Excel General
    Replies: 7
    Last Post: 02-21-2006, 07:20 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