+ Reply to Thread
Results 1 to 13 of 13

Assets booking sheet - tracking most recent booking

  1. #1
    Registered User
    Join Date
    07-30-2018
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    13

    Assets booking sheet - tracking most recent booking

    Hi All,

    I have a problem I am trying to resolve.

    I want to build a spreadsheet for managing the booking of 100 items. I want columns for item number, user, date booked out, date booked back in...

    My question is;

    I want to also be able to track the current status of any of the 100 item. So, if you imagine asset "8" has been booked out, back in, back out several times... there will be multiple occurrences of this on my sheet.

    Currently, I have a "rolling"/"live" sheet which has the above columns and multiple occurrences... then I have another sheet which uses vlookups and returns the value against the latest date the item has been booked back in.

    I am sure there is a much better way to achieve this result. Any suggestions?
    Attached Files Attached Files
    Last edited by TommyTommyTommy; 07-31-2018 at 04:50 PM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assets booking sheet - tracking most recent booking

    Hi TommyTommyTommy.

    Welcome to the forum.

    Usually the most effective way to get help in the forum is to post a small Excel sample file that is representative of what you are working with, what you are attempting to achieve ... including a BEFORE section and an AFTER section (hand typed if necessary) often helps.

    To attach a file to your post: (Please no pics or screenshots ... saves retyping data.),
    • be sure to desensitize the data
    • click “Go Advanced” (next to Post Quick Reply – bottom right),
    • scroll down until you see “Manage Attachments”, click that,
    • click “Browse”.
    • select your file(s)
    • click “Upload”
    • click “Close window”
    • click “Submit Reply”

    The file name will appear at the bottom of your reply.
    Dave

  3. #3
    Registered User
    Join Date
    07-30-2018
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    13

    Re: Assets booking sheet - tracking most recent booking

    Hi, thank you for the tip. I have added a quick file which shows a basic concept.

    Info:

    Booking sheet to be updated with item/user/dates.

    "lookups" sheet has each item listed once, and "who had it last".

    My goals;

    I want to be able to add new rows to the booking sheet, and have the lookups return the latest person to have it. By default, vlookup returns the first result it matches. I think I need it to do the opposite.

    I want to know if there is any overall better way to achieve what I am trying to do?

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,552

    Re: Assets booking sheet - tracking most recent booking

    This proposal is based on the premise that if you want to add new rows to Table 1, then the bookings will be arranged chronologically based on the Out column.
    This proposal adds a column to Table 1 which is populated using: =COUNTIFS(A$2:A2,A2)=COUNTIFS([Item],[@Item])
    The 'Who had it last' column on Table 2 is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assets booking sheet - tracking most recent booking

    This is somewhat similar to JeteMc's proposal. The formula is a bit longer, and it doesn't depend upon data chronologically sorted.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-30-2018
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    13

    Re: Assets booking sheet - tracking most recent booking

    Thanks a lot for this. The second proposal is extremely versatile. I have to say I do not understand how it works. Could you break it down? Especially; Aggregate - function number , options, array. I haven't used this before. What are "14" and "6" relative to? If it's too much trouble don't worry - I'm currently picking Excel up quickly. I haven't used it since school which for me was 10 years ago!

    I use it frequently in my recent job where I have started to get obsessed and I've been building information systems to replace older ones. I'm really enjoying it.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assets booking sheet - tracking most recent booking

    I'll do my best.

    I encourage learning to use the F9 function key and the Evaluated formula feature aka Fx. These are good tools for trouble shooting, analyzing and self instruction. I recommend using them whenever I can.

    AGGREGATE is like the "Swiss Army Knife" of functions. It can perform 19 different functions referenced by numbers 1-19.
    14 is the LARGE function.
    The next value 6 is one of several options to ignore errors.
    The 1 at the end is the k-value that returns the 1st largest ... i.e. max value from the array.

    In the formula bar select just

    (Table2[@Item]=Table1[Item])

    and hit the F9 function key. You will see and array TRUE/FALSE. Applying any math operation to these will coerce them into their underlying numeric values of 1/0. Note that F9 presents results out of context.

    Extend the selection in the formula bar to

    Table1[Returned]/(Table2[@Item]=Table1[Item])

    Hit F9 and you will see an array of 5 digit numbers and #DIV/0! errors. If you are not aware of it dates are numbers starting with day 1 at 1/1/1900. The formatting is cosmetic. Excel works with those 5 digit numbers and can regard them as dates.

    Since the second option ... 6 ... directs AGGREGATE to ignore errors the 1st largest number is returned.

    All of this is nested inside the MATCH function which I will assume you already understand. If not with the formula cell in question the active cell apply Formulas > Evaluate Formula. Repeatedly clicking the evaluate button Excel reveals step-by-step how results are calculated and does it in context.

    Here is a link that explains AGGREGATE well.

    https://www.myonlinetraininghub.com/...egate-function

    Does this help?

  8. #8
    Registered User
    Join Date
    07-30-2018
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    13

    Re: Assets booking sheet - tracking most recent booking

    Hi FlameRetired,

    That is excellent I really appreciate it. Before I saw your reply, I did manage to figure out the "swiss army knife" of the "AGGREGATE" function - when I dived in and started deleting the "14", "6" it prompted the list showing the various options.

    I will use the function key and evaluate formula going forward - really, give a man a fish / teach a man to fish. You've set me up. Thanks for that.

    Couple things; F9 isn't working. Presumably it is a shortcut for the "FX" button. Instead it is resolving formulas as a value - e.g. if I put =SUM(5^2) it shows 25. If I select the cell and press F9 it removes the formula and puts 25 in it's place. I have a feeling you'll know what I am doing wrong?

    Second thing; when I paste your formula into my sheet - it does not show the same information. A pity, I can't post the formula on here as I have a new account and it is considered code/links. The formula changes.
    Last edited by TommyTommyTommy; 08-08-2018 at 03:54 PM.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assets booking sheet - tracking most recent booking

    Three things.

    The F9 is not a shortcut to Fx. It is a way to "cherry pick" elements of a formula ... remember out of context ... and display the results of that part only.
    I forgot to mention that after F9 you should hit Escape. If you hit Enter it will commit that array as a constant. You don't want that.
    Second thing; when I paste your formula into my sheet - it shows this instead after pressing the return key:
    [FORMULA]Hi FlameRetired,
    That sounds like you are selecting the whole formula "box". "[FORMULA]" part is the code tag that makes the "box" display.
    Instead find a small (sometimes faint) and usually blue icon above the formula "box". Click that and it will select just the whole formula without fail. Copy that.

  10. #10
    Registered User
    Join Date
    07-30-2018
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    13

    Re: Assets booking sheet - tracking most recent booking

    Quote Originally Posted by FlameRetired View Post
    Three things.

    The F9 is not a shortcut to Fx. It is a way to "cherry pick" elements of a formula ... remember out of context ... and display the results of that part only.
    I forgot to mention that after F9 you should hit Escape. If you hit Enter it will commit that array as a constant. You don't want that.
    That sounds like you are selecting the whole formula "box". "[FORMULA]" part is the code tag that makes the "box" display.
    Instead find a small (sometimes faint) and usually blue icon above the formula "box". Click that and it will select just the whole formula without fail. Copy that.
    I'm sorry - I've edited my post - where it said [FORMULA] that was me trying to use the post tags to try and circumvent this issue where it isn't letting me paste code because I am new to the forum. I have copied your formula beginning "=INDEX" and ending ",0))" per the formula you have posted!

    I am pasting it to cell "B2" under the "lookups" sheet. And it is, for whatever reason, being modified after pressing enter.

    New workbook attached showing the formula after copy/paste.

    F9 - got it. It took a dummy exercise for me to grasp! I did "=SUM(1+2)*(5+2)" highlighted e.g (1+2) and lo and behold it shows "3", highlight (5+2) and I get "7" - I get it. Thanks - that is very useful to know.
    Attached Files Attached Files
    Last edited by TommyTommyTommy; 08-08-2018 at 04:19 PM.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assets booking sheet - tracking most recent booking

    I am pasting it to cell "B2" under the "lookups" sheet. And it is, for whatever reason, being modified after pressing enter.
    Hmm. That's interesting. I've never noticed this behavior before. The Table2 references disappear.

    The formula still works correctly at my end though. Apparently [@Item] is understood to be the current table.

    Is this causing problems?
    Last edited by FlameRetired; 08-08-2018 at 04:53 PM.

  12. #12
    Registered User
    Join Date
    07-30-2018
    Location
    Dubai
    MS-Off Ver
    2016
    Posts
    13

    Re: Assets booking sheet - tracking most recent booking

    Can it be the context? perhaps the file was different when you originally composed the formula. When the formula is entered into the current file, it modifies itself to reference the correct tables and items? I don't know.

    It is working correctly. I'm just curious to the behaviour.

    Many thanks for your help. It would have otherwise been a grind to come to the same conclusions.

    I have another excel problem I am trying to resolve. I don't know if it is better to begin a new thread?

    I want to build a function to show all loans which are overdue.

    This is the approach I have taken;

    I have generated more data - dates for out/return
    Added a column "returned" - Yes or No.
    I added a column "late" which returns true/false based on the date being >today.
    I added a pivot table in a second sheet - this currently returns all instances where the return date is in the past.

    I have three questions;

    1. If the "returned" column (F) is "Yes" - the Late column should show "false". I assume I need to nest IF functions to achieve this, but I do not know the correct syntax.
    2. Is it possible to automate an email to the users generated by the pivot table? (imagine there were usernames captured and not "person 1").
    3. The email would send to the names given, and the body would be the same apart from a reference to the asset in question which would be dynamic. Is this kind of thing possible in MS excel?

    If you want me to explain in more detail let me know.
    Attached Files Attached Files

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Assets booking sheet - tracking most recent booking

    I think this question is different enough to start a new thread with appropriate title.

+ 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. Meeting room booking sheet macro
    By mikkisbee in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-20-2018, 03:33 PM
  2. [SOLVED] Equipment Booking and Tracking Help Needed
    By maynard63b in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2014, 09:35 AM
  3. booking time issues if booking removed
    By peter renton in forum Excel General
    Replies: 0
    Last Post: 04-11-2014, 03:50 AM
  4. [SOLVED] Sheet for Booking
    By AnastasiaLux in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-27-2014, 06:00 AM
  5. Conference Booking
    By dhendridge in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2011, 11:44 AM
  6. Link booking sheet to roster automatically
    By Southernw2002 in forum Excel General
    Replies: 3
    Last Post: 07-04-2010, 05:17 AM
  7. subtracting booking
    By clydesdale489 in forum Excel General
    Replies: 6
    Last Post: 01-30-2008, 06:07 PM

Tags for this Thread

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