+ Reply to Thread
Results 1 to 4 of 4

Using Excel to log hired cars

  1. #1
    Registered User
    Join Date
    05-06-2016
    Location
    Watford
    MS-Off Ver
    2010
    Posts
    1

    Using Excel to log hired cars

    Hi,

    I was hoping somebody could help. I have 100 cars and I rent these cars to people, when somebody calls me to hire a car I will need to use an excel spreadsheet to confirm how many cars are available at any given time, my current spreadsheet has a calendar made on it and I wanted to know if I could link this calendar to a cell meaning I only need to enter a date that the car is to be hired on and it will list how many cars are available on that particular day?

    Forgive my descriptive powers on this post.

    My end product spreadsheet will map out all the cars registration plates on the calendar while providing me in a separate cell how many are available for any given period.

    I'm trying to attach the attacvhment but this will not work nor can I screenshot this.

    Any ideas?

    Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: Using Excel to log hired cars

    To attach a workbook:

    Click on GO ADVANCED and then scroll down to[COLORT="#FF0000"] Manage Attachments[/COLOR] to open the upload window (or use the paperclip icon).

    If you are willing to go the Access route, then here is a schema for tracking Car Hires

    http://www.databaseanswers.org/data_...hire/index.htm
    Last edited by alansidman; 05-06-2016 at 11:37 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Using Excel to log hired cars

    Here is a bit of an example that may get you started.

    Suppose you own a fleet of cars with licenses (or other unique ID) such as: AAA, BBB, CCC, etc.

    You put them on the schedule as indicated.

    Next you enter in the start and end date of the new hire in cells B1 and B2.

    I have some helper cells that find where these dates occur on row 1. These are used with the offset command to define a named dynamic range:

    Car_Range =OFFSET(Sheet1!$F$1,1,Sheet1!$C$1-1,100,Sheet1!$C$3+1)

    The offset command has 5 arguments:
    Start cell
    Number of cells to go down
    Number of cells to go right
    Number of rows to return
    Number of columns to return

    So we start in cell F1 (First date in the range)
    Go down one row (so we are now in cell F2)
    Go over the number of cells in cell C1 (5 cells to cell J1)
    Return a range 100 rows deep (since you have a maximum of 100 cars)
    And a number of columns = the number of cells in cell C3 (5) + 2.

    This gives is the range J2:O101. This range will change when you change the start and end dates.

    This article explains more about named ranges and offset: http://www.utteraccess.com/wiki/inde...Dynamic_Ranges

    Then in Columns A there is a list of licenses and in column B and indicator of how many days within the range, those licenses are in use. If it’s zero, then the car is available for the period. I threw in a bit of conditional formatting to show green when a car is available.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using Excel to log hired cars

    Hi and welcome to the forum.

    You really need to upload your workbook so that we can see the request in context.

    Personally I think this is probably a task for a Pivot Table. List all your cars with the start and end date of hire in two columns, and another column that has the
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The use a Pivot Table and a Slicer to filter the PT using the field header that contains the "Available" cars.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Get existing cars from a list
    By Immortal2014 in forum Excel General
    Replies: 6
    Last Post: 04-29-2016, 04:27 PM
  2. [SOLVED] Auto fill last km of cars
    By Immortal2014 in forum Excel General
    Replies: 7
    Last Post: 04-28-2016, 12:16 PM
  3. Charting Sales and employees hired
    By jw01 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-23-2015, 04:55 PM
  4. Days cars are at garage + 1 incremental
    By carolineI in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2014, 06:48 AM
  5. [SOLVED] Avoid search with wild cars **
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-02-2014, 11:18 AM
  6. If hired before a particular date
    By Kimston in forum Excel General
    Replies: 3
    Last Post: 11-04-2011, 02:48 PM
  7. [SOLVED] customerfollowup for cars sales
    By joanne panzo in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 06-13-2006, 08: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