LET/VSTACK Help

Jedi Master

Board Regular
Joined
Jun 10, 2024
Messages
70
Office Version
  1. 365
Platform
  1. Windows
I am trying to LET(X,VSTACK a column (First mini sheet, column B31:B59) based on a value greater (2nd mini sheet) than 0 in columns M4:UM4 based on a selected date. Date will be input in a different sheet (Daily Report) in cell E3.


FE Cadiz St3375-3317 Access.xlsm
BCDEFGHIJ
30Equipment CategoryEquip IDBudget DaysDays Used% usedBudget Billing $ Cost $ used GM %Budget Cost $
31Bid Rental Crew TruckRTK837 7WWP3D 2024 RAM B25C SDB4 BLACK15320.00%$1,725.00$255.0085.22%$1,275.00
32Bid Rental Skidloader (Kubota SVL 95/97, CAT 299, CAT 289)SK705 Trackloader, Kubota SVL9715320.00%$6,750.00$627.0090.71%$3,135.00
33Bid Rental Excavator (CAT 308, Kubota KX080, or equivalent)EX601 Excavator, Kubota KX08015320.00%$7,500.00$660.0091.20%$3,300.00
34Bid Rental PORTA-JOHN (Pair) 1500.00%$525.00$75.0085.71%$375.00
35Bid Rental D5 Dozer (Komatsu D39, or equivalent)EX607 Dozer, Komatsu D51 PXi15320.00%$8,250.00$867.0089.49%$4,335.00
36Bid Rental SXS/UTV 1500.00%$1,950.00$0.00100.00%$885.00
37Bid Rental 4x4 Stakebed Truck (F550/5500)R83871 Truck, Cat F550 Stake Bed15320.00%$2,325.00$345.0085.16%$1,725.00
38Bid Rental Roller (CS54/56, or equivalent) 10110.00%$5,500.00$279.0094.93%$2,790.00
39Bid Rental Utility Trailer 1000.00%$750.00$0.00100.00%$250.00
40   0     
41   0     
42   0     
43   0     
44   0     
45   0     
46   0     
47   0     
48   0     
49   0     
50   0     
51   0     
52   0     
53   0     
54   0     
55Semi Truck PeterbuiltTK102 Truck, Peterbilt 389 Semi4250.00%$0.00$500.00#DIV/0!$1,000.00
56Triaxle Trailer DetachTR401 Trailer, Talbert lowboy tri axle4250.00%$0.00$0.00#DIV/0!$0.00
57hydrema dumpr888841   
58  0   
59  0   
PM Project Tracker
Cell Formulas
RangeFormula
B31:B59B31=IF(ForemanProjectTracker[@Column1]="","",ForemanProjectTracker[@Column1])
C31:C59C31=IF(ForemanProjectTracker[@Column2]="","",ForemanProjectTracker[@Column2])
D31:D54D31=IF(ForemanProjectTracker[@Column3]="","",ForemanProjectTracker[@Column3])
E31:E59E31=COUNTIFS(M31:UW31,">0")
F31:F59F31=IF(D31="","",E31/D31)
G31:G54G31=IF('2-Quote Master'!H50="","",'2-Quote Master'!H50)
H31:H54H31=IF([@Column6]="","",SUM(COUNTIFS(PMProjectTracker[@[Column12]:[Column558]],{">0","*"}))*('2-Quote Master'!V50/[@Column3]))
I31:I59I31=IF(G31="","",1-H31/G31)
J31J31=IF('2-Quote Master'!H50="","",'2-Quote Master'!V50)
J32J32=IF('2-Quote Master'!H50="","",'2-Quote Master'!V51)
J33J33=IF('2-Quote Master'!H50="","",'2-Quote Master'!V52)
J34J34=IF('2-Quote Master'!H50="","",'2-Quote Master'!V53)
J35J35=IF('2-Quote Master'!H50="","",'2-Quote Master'!V54)
J36J36=IF('2-Quote Master'!H50="","",'2-Quote Master'!V55)
J37J37=IF('2-Quote Master'!H50="","",'2-Quote Master'!V56)
J38J38=IF('2-Quote Master'!H50="","",'2-Quote Master'!V57)
J39:J54J39=IF('2-Quote Master'!H50="","",'2-Quote Master'!V58)
H55:H59H55=IF([@Column6]="","",SUM(COUNTIFS(PMProjectTracker[@[Column12]:[Column558]],{">0","*"}))*([@Column9]/[@Column3]))
J55J55=250*4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F31:F59,F63:F103Cell Valuebetween 0.81 and 100%textNO
F31:F59,F63:F103Cell Value<0.8textNO
F31:F59,F63:F103Cell Value>100%textNO
Cells with Data Validation
CellAllowCriteria
D55:D59Any value
G55:G59Any value
J55:J59Any value


Cell Formulas
RangeFormula
N4N4=[@Column12]+1
O4O4=[@Column13]+1
P4P4=[@Column14]+1
Q4Q4=[@Column15]+1
R4R4=[@Column16]+1
S4S4=[@Column17]+1
M4,M6M4=Project_Start
M5M5=M6
N6:S6N6=M6+1
M7:S7M7=LEFT(TEXT(M6,"ddd"),1)
M9:M28M9=ForemanProjectTracker[@Column12]
N9:N28N9=ForemanProjectTracker[@Column13]
O9:O28O9=ForemanProjectTracker[@Column14]
P9:P28P9=ForemanProjectTracker[@Column15]
Q9:Q28Q9=ForemanProjectTracker[@Column16]
R9:R28R9=ForemanProjectTracker[@Column17]
S9:S28S9=ForemanProjectTracker[@Column18]
Cells with Conditional Formatting
CellConditionCell FormatStop If True
OC60:OI62,OC106:OH156,OC104:OI105,M9:S28,W9:AC28,AG9:AM28,AQ9:AW28,BA9:BG28,M31:S59,W31:AC59,AG31:AM59,AQ31:AW59,BA31:BG59,OC31:OH59,M63:S156,W61:AC156,AG63:AM156,AQ61:AW156,BA61:BG156,OC63:OH103Cell Value>0textNO
M11:S11Expression=OR(M6=M11,M6>I11, M6<J11,M6=I11)textNO
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Above 2nd mini sheet range was wrong, below is the correct

Cell Formulas
RangeFormula
M31:M59M31=ForemanProjectTracker[@Column12]
N31:N59N31=ForemanProjectTracker[@Column13]
O31:O59O31=ForemanProjectTracker[@Column14]
P31:P59P31=ForemanProjectTracker[@Column15]
Q31:Q59Q31=ForemanProjectTracker[@Column16]
R31:R59R31=ForemanProjectTracker[@Column17]
S31:S59S31=ForemanProjectTracker[@Column18]
Cells with Conditional Formatting
CellConditionCell FormatStop If True
OC60:OI62,OC106:OH156,OC104:OI105,M9:S28,W9:AC28,AG9:AM28,AQ9:AW28,BA9:BG28,M31:S59,W31:AC59,AG31:AM59,AQ31:AW59,BA31:BG59,OC31:OH59,M63:S156,W61:AC156,AG63:AM156,AQ61:AW156,BA61:BG156,OC63:OH103Cell Value>0textNO
 
Upvote 0
This is the solution:

=LET(x,XLOOKUP($E3,'PM Project Tracker'!M4:UM4,'PM Project Tracker'!M31:UM59),IF($E3="","",CHOOSECOLS(FILTER(HSTACK('PM Project Tracker'!B31:B59,x),x>0),1)))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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