+ Reply to Thread
Results 1 to 2 of 2

Moving and formatting

  1. #1
    Registered User
    Join Date
    10-27-2007
    Posts
    1

    Moving and formatting

    Hi all, I have a question that if anyone could help with I would be most appreciative.

    I work for a hostel and we use Excel to allocate our rooms and show availability. In order to make things easier I've created an excel file that counts available rooms automatically using the COUNTIF function, however I've come across a problem. Regularly we cut and paste reservations from one room to another, the problem is that when I do this it changes the reference of the countif formula so it returns inaccurate results. To clarify, if I have the formula:

    =COUNTIF(B221:B225,0)

    and I cut the reservation from the room at B225 then paste into another room in B230, it changes the formular to:

    =COUNTIF(B221:B230,0)

    which obviously then covers a greater spread and returns incorrect results.

    My question is, is it possible to write a formula that will keep constant ranges regardless of cutting and pasting. Additionally, is there a way to cut only the value of a selection of cells and not the formatting? I have conditional formatting set up to highlight available rooms, but once I move a reservation it brings the formatting with it so the empty room is no longer correctly formatted.

    I hope all this makes sense, thanks for any help you can offer.
    BCN Loft

    Holiday Apartment Rentals in Barcelona

  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
    See if links help


    Absolute References

    Paste Special

    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 !!!

+ 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