+ Reply to Thread
Results 1 to 18 of 18

Formula/s for managing equipment hire

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Formula/s for managing equipment hire

    Hi all,

    I'm trying to get a workbook together for a small equipment hire job I have taken on. What I want to do is split up the sheets so Sheet 1 = Equipment (so you fill out who hires what), then I want that data to auto transfer to Sheet 2 (only if it is filled out) so Sheet 2 = On Loan (Equipment that is hired), I also want to put in extra stuff here such as deposit and return date etc. Then on Sheet 3 = Equipment History, I want it to make a copy of completed Sheet 2 entries for a history log.

    IS THIS POSSIBLE?!

    And is it also possible so that when equipment has been returned, it clears on Sheet 1 (so that it is free for hire), but still keeps a record on sheet 3?Equipment Register.xlsx

    I've been racking my anti-formula brain for the past few hours and can't seem to understand or make it work!

    Please let me know if there are ways to make this happen/enquiries. Thank you!

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Formula/s for managing equipment hire

    Hi,
    It can be possible by VBA, but as you are on MAC and I am using PC so my code wont work on your system.

    I have just put some formulas for your 2nd sheet requirement.
    Equipment Register.xlsx
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,594

    Re: Formula/s for managing equipment hire

    ARRAY Formula in A3, then dragged across
    Please Login or Register  to view this content.
    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Re: Formula/s for managing equipment hire

    Thanks guys, these are amazing! I'm so happy it works!
    I have a few questions if possible:
    1. I want to add in another column, for example "Equipment Type", how do I do this and include that in the formula?
    2. How can I stretch this formula across many cells? We have about 200-300 pieces of equipment I want to register.

    Again, thank you so much, this was amazing to get a reply to! THANK YOU

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Formula/s for managing equipment hire

    Assuming "Equipment Type" is added in Column G Of all sheets) then in G3


    =IFERROR(INDEX(Equipment!G$3:G$20,SMALL(IF(Equipment!$D$3:$D$20<>"",ROW($D$3:$D$20),""),ROWS
    ($1:1))-ROW($D$3)+1),"")

    ARRAY formula is used

    To enter ARRAY formula
    Paste the formula
    Press F2
    Press Ctrl+Shift+Enter keys together.

    I assume equipment is ROWS not Columns: so extend range from 20 to 300 (or whatever) in the respective formulae.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,594

    Re: Formula/s for managing equipment hire

    Same formula can be dragged to the next column. Pl see file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Re: Formula/s for managing equipment hire

    Thanks, I'm still struggling getting it to span over the cells, whenever I drag it the data seems to stop at 18?
    Also I really wanted to get Equipment type in the First Column and move everything across one, is this a hassle? And the date seems to be going weird, now it's just 5 numbers?

    I've attached what I've tried and miserably failed at if it helps!
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Formula/s for managing equipment hire

    You need to change dimensions from 20 to 100 (or whatever) in all of the formulae. and drag down 100 rows.


    =IFERROR(INDEX(Equipment!A$3:A$20,SMALL(IF(Equipment!$A$3:$A$20<>"",ROW($A$3:$A$20),""),ROWS($1:1))-ROW($A$3)+1),"")

    I don't understand comment about numbers: if you drag formula across you will get 0 in columns H to K as there is no data in "Equipment" for these columns,
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,594

    Re: Formula/s for managing equipment hire

    Change the ARRAY formula like this
    Range should be changed from G$3:G$20 as G$3:G$200 (all ranges)
    =IFERROR(INDEX(Equipment!G$3:G$200,SMALL(IF(Equipment!$D$3:$D$200<>"",ROW($D$3:$D$200),""),ROWS($1:1))-ROW($D$3)+1),"")
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Unhappy Re: Formula/s for managing equipment hire

    I've changed the formula but when I drag it down the rest of the data disappears, and when I change the range in that cell, the data disappears again? Also with the date issue, I entered 26/06/15 in my Hire Date, and then in sheet 2 it appears as 42189 or something?

    Are these issues because I'm on a MAC?

    This layout attached is exactly what I want, however I just can't get it to 200 cells, it won't even show past 18 now! Ahhhh
    Attached Files Attached Files

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

    Re: Formula/s for managing equipment hire

    The formula in A3 (range reference Equipment!A3:A200) needs to be array-entered. (Ctrl + Shift + Enter) Then fill down and across.

    The cells below are array-entered but they still retain the old 20 row range reference Equipment!A3:A20.

    Hope this helps.
    Dave

  12. #12
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Red face Re: Formula/s for managing equipment hire

    Thank you that actually made so much sense! Now I just need to fix my hire date issues

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,594

    Re: Formula/s for managing equipment hire

    Formula should be entered in ARRAY format.
    How to enter the ARRAY formula I have given in my first post.
    Once it is entered as ARRAY formula you will see Flower bracket {} auound the formula . Now drag it across.
    Note that ARRAY formulas are different normal formula.

  14. #14
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Re: Formula/s for managing equipment hire

    Thanks kvsrinivasamurthy i've fixed it now Do you have any idea about how to fix my date issues? I've inputed 26/06/15 in Sheet 1 and in Sheet 2 it comes up as 42181 - confusing?!

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Formula/s for managing equipment hire

    Format cell (column) as Date.

  16. #16
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Re: Formula/s for managing equipment hire

    Thanks JohnTopley, it worked!

    I have transferred over all my data, however I have one last issue! I wanted the data on sheet 2 to only appear when the 'On Loan to' section was filled out, however it appears on sheet 2 with 0 in the cell (because it is unfilled). How do i only get the data with the names to appear??

    I have attached the spreadsheet for reference
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: Formula/s for managing equipment hire

    Change to ...

    In A3

    =IFERROR(INDEX(Equipment!A$3:A$400,SMALL(IF((Equipment!$A$3:$A$400<>"")*(Equipment!$E$3:$E$400<>""),ROW($A$3:$A$400),""),ROWS($1:1))-ROW($A$3)+1),"")

    Enter with Ctrl+ShifT+Enter

    Copy across and down

  18. #18
    Registered User
    Join Date
    08-20-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    MAC
    Posts
    10

    Re: Formula/s for managing equipment hire

    Thanks again JohnTopely, everything is great! You wouldn't happen to know how I can organise the data on sheet 2 by name do you?

+ 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] Formula Needed to Calc Total Cost for Using Equipment when Rate Increases per Days Used
    By Mollylou85 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2015, 01:41 PM
  2. Help with formula to buy equipment
    By IrishShenanigans69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2015, 01:11 PM
  3. Forecasting Formula for Decreasing Equipment Rental Rate
    By Dabney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2014, 05:09 AM
  4. Solutions for Equipment Hire system
    By hmb12 in forum Excel General
    Replies: 1
    Last Post: 08-09-2013, 09:03 AM
  5. Formula help for hire summary sheet
    By darren747 in forum Excel General
    Replies: 5
    Last Post: 11-16-2012, 09:07 AM
  6. Formula fix (today)-(month/day of hire) for vacation accrual
    By Daphne in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-08-2012, 03:42 PM
  7. Replies: 0
    Last Post: 06-09-2011, 03:26 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