Formula Help

NWPhotoExplorer

New Member
Joined
Jan 19, 2021
Messages
34
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I build a simple spreadsheet to keep track of the job numbers I work on through the day. In order to get paid, these job numbers have a corresponding SR number that I am pulling from a table. Some jobs may not have a SR number, so those need to be requested. I made a simple formula that should work, but isn't. I cannot figure out what the issue is with it.

Here is my table that I use to keep track of the jobs and how long I work on them.
Job Tracker.xlsx
CDEFG
7DateJob NumberTask TypeOFS SR CreatedSR Number
2093/19/2021JB0000074884QCREQUEST0
2103/19/2021JB0000553225DESIGNCREATED204938
2113/19/202182496MEETINGCREATED82496
2123/19/2021JB0000553225DESIGNCREATED204938
2133/19/2021JB0000069966QCREQUEST0
2143/19/2021JB0000586108QCREQUEST0
2153/19/2021JB0000586976QCCREATED0
2163/19/2021JB0000564050SURVEYREQUEST0
DAILY TRACKER
Cell Formulas
RangeFormula
F209:F216F209=IF(OR(COUNTIFS($D$8:$D$216,D209)>1,AND(ISNUMBER(G209),(G209<>0))),"CREATED","REQUEST")
G209:G216G209=IF(ISBLANK([@[Job Number]]),"",VLOOKUP([@[Job Number]],OFS,2,FALSE))
Named Ranges
NameRefers ToCells
P2JobNumber=OFS[Job Number]G209:G216
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G8:G216Expression=$G8=0textNO
D8:D216Cell ValueduplicatestextNO
Cells with Data Validation
CellAllowCriteria
D8:D216List=P2JobNumber
E8:E216ListDESIGN, ASBUILT, MEETING, QC, REDESIGN, REWORK, SURVEY, OTHER



Then I made a separate page to filter out jobs that I am working on for that day without the SR numbers.
Job Tracker.xlsx
ABCDE
1DateJob NumberTask TypeOFS SR CreatedOFS SR Created
23/19/2021#N/A
REQUEST SR NUMBER
Cell Formulas
RangeFormula
B2B2=UNIQUE(FILTER(T_JOBS[[#All],[Job Number]:[SR Number]],(T_JOBS[[#All],[Date]]=A2)*(T_JOBS[[#All],[Job Number]]<>82496)*(T_JOBS[[#All],[OFS SR Created]]="REQUEST")),FALSE,FALSE)


I'm not sure what the issue is with the formula. If I get rid of the part where it looks to see if there is a number in the G column, it seems to work, but then it sometimes pulls job numbers that already has the SR number. What do I need to change to my UNIQUE(FILTER) formula work?

Thanks in advance!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Your formulas work fine when I copy the example to a workbook.
The N/A could be coming from another row that you have hidden in the example, which would likely be caused by the formula in column G not finding a match for the job number in the OFS range. Try nesting the column G formula into IFERROR to show a blank when there is no match.
Excel Formula:
=IF(ISBLANK([@[Job Number]]),"",IFERROR(VLOOKUP([@[Job Number]],OFS,2,FALSE),""))
Book1 (version 2).xlsb
ABCDE
1DateJob NumberTask TypeOFS SR CreatedOFS SR Created
23/19/2021JB0000074884QCREQUEST0
3JB0000069966QCREQUEST0
4JB0000586108QCREQUEST0
5JB0000586976QCREQUEST0
6JB0000564050SURVEYREQUEST0
Sheet6
Cell Formulas
RangeFormula
B2:E6B2=UNIQUE(FILTER(T_JOBS[[#All],[Job Number]:[SR Number]],(T_JOBS[[#All],[Date]]=A2)*(T_JOBS[[#All],[Job Number]]<>82496)*(T_JOBS[[#All],[OFS SR Created]]="REQUEST")),FALSE,FALSE)
Dynamic array formulas.

Whilst it doesn't appear to be the case here, there are times when including your table headers with the #All name could cause problems, it would be best not to use them unless absolutely necessary.
Excel Formula:
=UNIQUE(FILTER(T_JOBS[[Job Number]:[SR Number]],(T_JOBS[Date]=A2)*(T_JOBS[Job Number]<>82496)*(T_JOBS[OFS SR Created]="REQUEST")))
 
Upvote 0
Solution
Your formulas work fine when I copy the example to a workbook.
The N/A could be coming from another row that you have hidden in the example, which would likely be caused by the formula in column G not finding a match for the job number in the OFS range. Try nesting the column G formula into IFERROR to show a blank when there is no match.
Excel Formula:
=IF(ISBLANK([@[Job Number]]),"",IFERROR(VLOOKUP([@[Job Number]],OFS,2,FALSE),""))
I added the IFERROR part and now it works. That is so odd that it wouldn't work on mine, yet it did for you without that. Thanks for that!.

Whilst it doesn't appear to be the case here, there are times when including your table headers with the #All name could cause problems, it would be best not to use them unless absolutely necessary.
Excel Formula:
=UNIQUE(FILTER(T_JOBS[[Job Number]:[SR Number]],(T_JOBS[Date]=A2)*(T_JOBS[Job Number]<>82496)*(T_JOBS[OFS SR Created]="REQUEST")))
As for the [#ALL] header part. I removed them, but I had read something a while back saying I needed them. Can you explain when I should use them?

Thanks!
 
Upvote 0
Can you explain when I should use them?
I use tables frequently and have never found a time when it has been necessary to use [#All] in a formula. There are occasions when you might find that you need to refer to the header row in a formula, but not at the same time as the main body of the table.
 
Upvote 0

Forum statistics

Threads
1,224,747
Messages
6,180,712
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