Let formula for text

darkhangelsk

New Member
Joined
Feb 10, 2013
Messages
27
Hello,

I have a "LET" formula trying to use, however, i got an error whenever I put a text on the first column.

1666896429718.png


This is use for data validation, so i can remove the unique values and it is based on the data from "Shift" then "Group" headers.

Thank you in advance!
 

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.
Can you please post your actual formula.
 
Upvote 0
I hope mini workbook is working

Dependent Dropdown List1.xlsx
ABCDEFGHIJKLMNOP
1ShiftGroupNameShiftGroupNameShiftGroupNameCount
2TextVideo 1Employee 1#VALUE!Video 1Employee 2-->08:00Video 1Employee 21
38:00Video 1Employee 28:00Video 2Employee 3
48:00Video 1Employee 312:46Non Video 1Employee 4
58:00Video 1Employee 410:00Non Video 2Employee 5
68:00Video 1Employee 516:00Video AppealShiftGroupName
712:4623Mean18:008:00Video 1Employee 2
8Text22Due23:30
9Text24Blank23:45
10
11
12
13
148:00Video 2Employee 6
158:00Video 2Employee 7
168:00Video 2Employee 8
Sheet1
Cell Formulas
RangeFormula
G1:I1,L6:N6,L1:N1G1=Table1[#Headers]
G2:G9G2=LET(data,UNIQUE(FILTER(Table1[Shift],Table1[Shift]<>0)), HOUR(data) & ":" & TEXT(MINUTE(data),"00") )
H2:H6H2=UNIQUE(FILTER(Table1[Group],Table1[Shift]=--$L7))
I2:I5I2=UNIQUE(FILTER(Table1[Name],(--(Table1[Shift]=--$L7))*--(Table1[Group]=$M7)))
L2:N2L2=UNIQUE(FILTER(Table1,(--(IF(--$L7=0,1,Table1[Shift]=--$L7)))*--(IF($M7=0,1,Table1[Group]=$M7))*--(IF($N7=0,1,Table1[Name]=$N7))))
P2P2=ROWS(L2#)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
L7List=Shift#
M7List=Group#
N7List=Name#


What i need is to include the word "text" on the data validation from the table.
 
Upvote 0
If you want to keep the word Text then why not just use
Excel Formula:
=UNIQUE(FILTER(Table1[Shift],Table1[Shift]<>0))
and format the column to Time.
 
Upvote 0
If you want to keep the word Text then why not just use
Excel Formula:
=UNIQUE(FILTER(Table1[Shift],Table1[Shift]<>0))
and format the column to Time.
It worked. but if i use that and select the "text" on the data validation, the "Group" and "Name" is having an error of #VALUE!

I think because the error coming from here:

=UNIQUE(FILTER(Table1,(--(IF(--$L7=0,1,Table1[Shift]=--$L7)))*--(IF($M7=0,1,Table1[Group]=$M7))*--(IF($N7=0,1,Table1[Name]=$N7))))
 
Upvote 0
How about
Excel Formula:
=UNIQUE(FILTER(Table1,(IF($L7=0,1,Table1[Shift]=$L7))*(IF($M7=0,1,Table1[Group]=$M7))*(IF($N7=0,1,Table1[Name]=$N7))))
 
Upvote 0
How about
Excel Formula:
=UNIQUE(FILTER(Table1,(IF($L7=0,1,Table1[Shift]=$L7))*(IF($M7=0,1,Table1[Group]=$M7))*(IF($N7=0,1,Table1[Name]=$N7))))
I think it's working as it changed to #CALC!. However, the H2 and I2 (Group and Name header) still have error of #VALUE!. here's their formula:

H2:
=UNIQUE(FILTER(Table1[Group],Table1[Shift]=--$L7))

I2
=UNIQUE(FILTER(Table1[Name],(--(Table1[Shift]=--$L7))*--(Table1[Group]=$M7)))


1666904036714.png
 
Upvote 0
Try it like
Excel Formula:
=UNIQUE(FILTER(Table1[Group],Table1[Shift]=$L7))
and
Excel Formula:
=UNIQUE(FILTER(Table1[Name],(Table1[Shift]=$L7)*(Table1[Group]=$M7)))
 
Upvote 0
Solution
Try it like
Excel Formula:
=UNIQUE(FILTER(Table1[Group],Table1[Shift]=$L7))
and
Excel Formula:
=UNIQUE(FILTER(Table1[Name],(Table1[Shift]=$L7)*(Table1[Group]=$M7)))

Thank you! it seems working. Will do full test and check for any issue before marking it "SOLVED". Again, Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,664
Members
449,114
Latest member
aides

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