# List of Job No based on ststua in another cell

1. ## List of Job No based on ststua in another cell

I have a new sheet where I want to summarise all jobs which have a certain status from another sheet. I have all my data in JobTable on Jobs sheet and am using the following which doesn't work:-

=IF(JobTable[Current Job Status]="OFFICE",JobTable[Job No],"")

I want a list of job numbers which have the status of OFFICE displayed. I can see how the above formula doesn't work but can't see why - it seems such a simple thing to do but I'm having a brain freeze!

I'm thinking it needs to use INDEX in there somewhere.

2. ## Re: List of Job No based on ststua in another cell

Please provide a small sample file.

3. ## Re: List of Job No based on ststua in another cell

Hi. Sample attached showing the data table and then the required results.

I'd rather create the solution via formula than power query

4. ## Re: List of Job No based on ststua in another cell

So the results you want are just the job number - yes?

This in A2 copied down:

=IFERROR(INDEX(Table1[Job No],AGGREGATE(15,6,ROW(\$1:\$501)/(Table1[Status]="OFFICE"),ROW(1:1))),"")

5. ## Re: List of Job No based on ststua in another cell

That works fine AliGW

To now bring through the site would you advise using your formula or using a VLookup (or INDEX / MATCH) based on the job number generated from your formula?

6. ## Re: List of Job No based on ststua in another cell

Just use that formula with a different INDEX column. VLOOKUP and INDEX MATCH get fiddly with multiple criteria, so use the KISS principle here, The AGGREGATE formula is not array entered, so should be softer in terms of overhead, anyway.

7. ## Re: List of Job No based on ststua in another cell

Works a treat - thanks

8. ## Re: List of Job No based on ststua in another cell

Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1