Help with listing please

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
223
Office Version
  1. 2016
Here is the data:

Inactive Trailers Report (TRLPOD2).xlsx
ABCKLMNQRS
1210IL-CHIJames BondIL195922 9/1111AVAILABLE3MDKLBFALSE
1211IL-CHIJames BondIL634284 9/1111AVAILABLE3MDKLBFALSE
1212IL-CHIJames BondIL175228 8/212222O/S ON THEABDPFALSE
1213IL-CHIJames BondIL237337 8/301313AVAILABLEABDPFALSE
1214IL-CHIJames BondIL634381 8/251818AVAILABLECEDLWFALSE
1215IL-CHIJames BondIL634563 8/311212AVAILABLECEDLWFALSE
1216IL-CHIJames BondIL634528 9/011111AVAILABLECEDLWFALSE
1217IL-CHIJames BondIL195853 8/212222AVAILABLECHWLILFALSE
1218IL-CHIJames BondIL175369 9/0577O/S ON THECHWLILFALSE
1219IL-CHIJames BondIL175362 9/0844AVAILABLEDTJOFALSE
1220IL-CHIJames BondIL185431 9/0844DISPATCHED20669TRUE
1221IL-CHIJames BondIL635064 9/0844AVAILABLEDTJOFALSE
1222IL-CHIJames BondIL634470 9/1200AVAILABLEDTJOFALSE
Inactive Trailers Report (TRLPO
Cell Formulas
RangeFormula
Q1210:Q1222Q1210=VLOOKUP(K1210,Sheet1!$A:$I,2,0)
R1210:R1222R1210=VLOOKUP(K1210,Sheet1!$A:$I,9,0)
S1210:S1222S1210=ISNUMBER(R1210)


Here is a sample of a past report:

Inactive Trailers Report (TRLPOD2).xlsx
ABCDEFGHIJK
1Inactive Trailer Report for:James Bond9/13/2023
2
3
4# Trailers over 10 days (10-20)27
5
6# Trailers over 21 days (21+)5
7
8Total:32
9
10
11Empty Trailers over 20 days:Customer/ShopCity/StateLoc. CodeReason for IdleLoaded Trailers over 20 days:
12633854ShopCR IASTTRCRStill in shop as shop is backed loggedTrailer#Where (customer)City/StateCustomer CodeExplaination from customer
13175126ShopCALWIMFMILWIn shop216771CustomerROMMIRETROMstill loaded.
14634219CustomerCINOH PCCIOHTmove set to drop in Indy for retirment
15634577ShopLIMOHKNLLIMIn shop
16
Sheet2
Cell Formulas
RangeFormula
E1E1=TODAY()
C8C8=SUM(C4,C6)


Here is what I want to accomplish:

I want cells A12:A30 to have a formula that automatically pulls the "trailer numbers" located on the Inactive tab in column K that matches the criteria: S = False, M =>20, B="James Bond", Q = (everything except "LOADED")
I want cells G13:G30 to have a formula that automatically pulls the "trailer numbers" located on the Inactive tab in column K that matches the same criteria as before but Q = "LOADED"

From there I can just use VLOOKUP for the rest of the info I need.


Any help would be much appreciated.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi,

looking at your data, it would appear that you have over 1000 trailers , right (as you are listing them in rows 1200+).
Can I ask, why would you only expect to have a maximum of 18 trailers inactive at any time ? (eg. Row30 - Row 12 = 18 rows only) ?
Also, are you still on Excel version 2016, or did you upgrade at all (s more formulas available in newer versions for people to try and use...)

thanks
Rob
 
Upvote 0
Hi,

looking at your data, it would appear that you have over 1000 trailers , right (as you are listing them in rows 1200+).
Can I ask, why would you only expect to have a maximum of 18 trailers inactive at any time ? (eg. Row30 - Row 12 = 18 rows only) ?
Also, are you still on Excel version 2016, or did you upgrade at all (s more formulas available in newer versions for people to try and use...)

thanks
Rob

Good questions.
Yes, still using version 2016
As for trailers, there are many different "planners" name was changed to "James Bond"
So each planner may only be responsible at any given time to X amount of trailers.
That and the trailers in question are ones that are "sitting" too long and not being utilized. (dead weight)
So the goal of it is trying to assign the trailers sitting too long as when they tend to sit, they get stolen, damaged, vandalized, etc...

So there is a warning period of 10 to 20 days on just the "count" which I can do with a simple formula

Then there is the problem trailers of ones that have been idle for 21+ days which are the only ones needing listed.

Once I have a working formula I will create each tab for each individual planner which I can easily alter the formula for.
 
Upvote 0
I added a row column and came up with this formula so far...but it still isn't working:

{=INDEX('Inactive Trailers'!$B$2:$T$2595,SMALL(IF(COUNTIF('Inactive Trailers'!$N$2:$N$2595,">20")*COUNTIF('Inactive Trailers'!$C$2:$C$2595,"James Bond"),MATCH(ROW('Inactive Trailers'!$C$2:$C$2595),ROW('Inactive Trailers'!$C$2:$C$2595)),""),ROWS('Inactive Trailers'!$A$1:A1)),COLUMNS('Inactive Trailers'!$A$1:A1))}

It shows everything instead of only ">20" and "James Bond".....still haven't figured out the "loaded" only column either....
 
Upvote 0
** edited - sorry, I see "SORT" is from Excel 2021.... :( *** need to keep trying as this wont work for you apologies

Hi,
so this isn't quite perfect - and I'm using O365 - so I'm hoping you can put this formula in as an array formula between {} in your 2016 version.

I've made my example on the same sheet, just for ease of solving really, but I'm sure you can amend to your own data on other sheets etc. as you seem to know what you're doing.

The SORT function drawback is that the array size is still huge even when blank, so will spill down your sheet massively with your number of rows..)

I hope you can follow what I've done with some of the other "array" formulas I've left in as I was building it, so you can see how it was built. Let me know how it goes..

I put my ref. points (name, no of days, true/false across in Col W.)

cheers
Rob
inactive_trailers.xlsx
ABCDEFGHIJKLMNOPQRSTUVWX
1IL-CHIJames BondIL19592209-Nov11AVAILABLE3MDKLBTRUEJames Bond
2IL-CHIJames BondIL63428409-Nov11AVAILABLE3MDKLBFALSE20
3IL-CHIJames BondIL175228Aug-212222O/S ON THEABDPFALSEFALSE
4IL-CHIJames BondIL237337Aug-301313AVAILABLEABDPFALSE
5IL-CHIMoneyPennyIL634381Aug-251818AVAILABLECEDLWFALSE
6IL-CHIJames BondIL634563Aug-311212AVAILABLECEDLWFALSE
7IL-CHIJames BondIL63452809-Jan2323AVAILABLECEDLWFALSE
8IL-CHIJames BondIL195853Aug-212222AVAILABLECHWLILFALSE
9IL-CHIJames BondIL17536909-May77O/S ON THECHWLILFALSE
10IL-CHIJames BondIL17536209-Aug44AVAILABLEDTJOFALSE
11IL-CHIMoneyPennyIL18543109-Aug2525DISPATCHED20669TRUE
12IL-CHIJames BondIL63506409-Aug44AVAILABLEDTJOFALSE
13IL-CHIJames BondIL63447009-Dec2323LOADEDDTJOFALSE
14
15
16
17
18
19
20
21
22nametrue/falsedaysall + <>LOADEDResult
231000175228
241100195853
251111634528
261100
270100
281100
291111
301111
311100
321100
330010
341100
351110
36
Inactive Trailers
Cell Formulas
RangeFormula
A23:A35A23=--(B1:B13=W1)
B23:B35B23=--(S1:S13=S3)
C23:C35C23=--(N1:N13>W2)
D23:D35D23=--(B1:B13=W1)*--(S1:S13=W3)*--(N1:N13>W2)*--(Q1:Q13<>"LOADED")
G23:G35G23=SORT(IF(--(B1:B13=W1)*--(S1:S13=W3)*--(N1:N13>W2)*--(Q1:Q13<>"LOADED")*(K1:K13)>0,--(B1:B13=W1)*--(S1:S13=W3)*--(N1:N13>W2)*--(Q1:Q13<>"LOADED")*(K1:K13),""))
Dynamic array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,679
Members
449,179
Latest member
jacobsscoots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top