Xlookup or Alternative?

Thomas Scott

New Member
Joined
Nov 7, 2021
Messages
15
Office Version
  1. 2021
Platform
  1. Windows
I am trying to select and list reduced budgets for units on a whatif situation in an imaginary 8 quarters. The names are listed and when possible future funds would be available but want to see a list of the units that would receive no funding depending on the number of funds allocated. I looked at Xlookup as a possible solution but the approach would have to search through all 8 to see if the cut criteria had an impact in creating non-funded units. I also show below the same data but sorted which is not as desirable but I could live with it. The keys are the blue column (cuts) and the red column resulting unit names. Any ideas on how to approach this would be appreciated. Thanks very much.

Budget Sample.xlsx
ABCDEFGHIJKL
1Quarterly (thousand)
2DeptQ1Q2Q3Q4Q5Q6Q7Q8TotalFundedPlannedCutsNonFundDepts
3Alpha1120
4Beta1121
5Gamma11132Alpha, Beta
6Delta111143Gamma, Eta
7Epsilon1111154Delta, Zeta
8Zeta111145Epsilon
9Eta11136Theta
10Theta1111116
11
12
13DeptQ1Q2Q3Q4Q5Q6Q7Q8TotalFundedPlannedCutsNonFundDepts
14Alpha1120
15Beta1121
16Gamma11132Alpha, Beta
17Eta11133Gamma, Eta
18Delta111144Delta, Zeta
19Zeta111145Epsilon
20Epsilon1111156Theta
21Theta1111116
Budgets
Cell Formulas
RangeFormula
J3:J10,J14:J21J3=SUM(A3:I3)
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Maybe like this:

Book1
ABCDEFGHIJKL
1Quarterly (thousand)
2DeptQ1Q2Q3Q4Q5Q6Q7Q8TotalFundedPlannedCutsNonFundDepts
3Alpha1120 
4Beta1121 
5Gamma11132Alpha, Beta
6Delta111143Gamma, Eta
7Epsilon1111154Delta, Zeta
8Zeta111145Epsilon
9Eta11136Theta
10Theta1111116
Sheet1
Cell Formulas
RangeFormula
L3:L9L3=TEXTJOIN(", ",1,FILTER($A$3:$A$10,$J$3:$J$10=K3,""))
J3:J10J3=SUM(A3:I3)
 
Upvote 0
Problem solved. Excellent solution. Did not know about these functions and their possible use.
 
Upvote 0
Ok. I thought I was done, but sometimes there are many units that would be listed and I thought to add a column for the number cut by simply counting the names in the last column. My solution almost works except for when there are no cut labels which should result in a blank cell but my formula as an addition. I've tried some IF statements but after a couple of hours gave up. Anyway here it is and would not be surprised if it is an easy answer. Thanks again.

Budget Sample II.xlsx
ABCDEFGHIJKLM
1Quarterly (thousand)
2DeptQ1Q2Q3Q4Q5Q6Q7Q8TotalFundedPlannedCutsNumberCutNonFundDepts
3Beta11211 
4Gamma111321Beta
5Gamma2111333Gamma, Gamma2, Eta
6Delta1111442Delta, Zeta
7Epsilon11111551Epsilon
8Zeta1111461Theta
9Eta1113 
10Theta1111116
Budgets2
Cell Formulas
RangeFormula
L3:L8L3=LEN(TRIM(M3))-LEN(SUBSTITUTE(M3," ",""))+1
M3:M9M3=TEXTJOIN(", ",1,FILTER($A$3:$A$10,$J$3:$J$10=K3,""))
 
Upvote 0

Forum statistics

Threads
1,224,748
Messages
6,180,721
Members
452,995
Latest member
isldboy

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