LET Formula Enhancement

Fonzie

New Member
Joined
Nov 27, 2023
Messages
21
Office Version
  1. 365
Platform
  1. Windows
Hi everyone -- thanks to Eric W for a solution he posted for another member! Is it possible to add a third result - the variance $'s in column 'AG'? Thank you....


BP_Model_Master_NEW.xlsx
RSTUVWXYZAAABACADAEAFAGAVAWAXAYAZBA
7DescriptionCost TypeItemQuantityUnitUnit CostBudget EstimateComps/Notest12Quantity - NewUnit Unit Cost - NewBudget Estimate - NewComps/Notes Quantity: New vs. Original (higher/lower)Cost Estimate: New vs. Original (higher/(lower)t15DescriptionBudget Estimate
8Lot ConstructionEarthwork685.00Per Lot$9,051.44$6,200,237.00685.00Per Lot$9,051$6,200,237$0$0Lot Construction$25,538,087
9Lot ConstructionUtilities & Roadway22,695.00LF$839.74$19,057,850.0022,695.00LF$840$19,057,850$0$0Land Acquisitions$7,300,000
PS1
Cell Formulas
RangeFormula
BA7BA7=+tblExpenseInputNew[[#Headers],[Budget Estimate]]
AF8:AF9AF8=+[@[Quantity - New]]-[@Quantity]
AG8:AG9AG8=+[@[Budget Estimate - New]]-[@[Budget Estimate]]
AZ8:BA28AZ8=LET(r,UNIQUE(tblExpenseInputNew[Description]),SORT(CHOOSE({1,2},r,SUMIFS(tblExpenseInputNew[Budget Estimate],tblExpenseInputNew[Description],r)),2,-1))
X8:X9X8=+[@[Unit Cost]]*[@Quantity]
AD8:AD9AD8=+[@[Unit Cost - New]]*[@[Quantity - New]]
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
S8:S71Expression=COUNTIFS( XLOOKUP( R8, Level2Choice, Level3Result )#, S8)=0textNO
R8:R71Expression=COUNTIFS( XLOOKUP(Q8, Level1Choice, Level2Result )#, R8)=0textNO
Cells with Data Validation
CellAllowCriteria
V8:V9List=INDIRECT("tblUnit[Unit]")
AB8:AB9List=INDIRECT("tblUnit[Unit]")
R8:R71List=XLOOKUP(Q8, Level1Choice, Level2Result )#
S8:S71List=XLOOKUP(R8, Level2Choice, Level3Result )#
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try AZ8: =LET(r,UNIQUE(tblExpenseInputNew[Description]),SORT(CHOOSE({1,2,3},r,SUMIFS(tblExpenseInputNew[Budget Estimate],tblExpenseInputNew[Description],r),SUMIFS(tblExpenseInputNew[Cost Estimate: New vs. Original (higher/(lower)],tblExpenseInputNew[Description],r)),2,-1))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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