I'm trying to create an IF, Then (do this) statement...
I have a sheet (Joblist) that contains 8 columns.
Column "A" contains a list of customer IDs. So, 1 for Joe Blogs, 2 for Jane Blogs, 3 for Mike Blogs, etc...
Column "F" contains specific jobs that have been requested for complete for the corresponding customer ID. For example, "Boiler Breakdown".
Column "H" contains the status of that job, so it will either be, "Resolved", "On-going" or "Ended". Again, corresponding to the specific job in that row.
All over columns contain irrelevant information to this task.
I have another sheet that allows me to search through data in the "CustomerList" by entering a customer name, this shows me a specific customers address etc. This is easily achieved using the "VLookup" function as there is only one instance of each person. However, what I'm trying to do with this new sheet is obtain data that contains multiple instances of the lookup value.
For example, Joe Blogs (Customer ID - 1) may of had 2 jobs over the last 2 weeks, one 'Resolved', one 'On-going'. Then, Mike Blogs may have 3 jobs done over the last week, 2 'Resolved', 1 'On-going'. I need it to search for the 'On-going' job relating to the customer ID (in this case 1) and skip past any 'Resolved' jobs.
I've tried using the following formula, however it just goes straight to last instance of the customer ID, regardless of what the status is.
=IF(LOOKUP(2,1/(JobList!A:A=C3),JobList!H:H)="Resolved",LOOKUP(2,1/(JobList!A:A=C3),JobList!H:H),IF(LOOKUP(2,1/(JobList!A:A=C3),JobList!H:H)="On-going",LOOKUP(2,1/(JobList!A:A=C3),JobList!F:F),"ERROR"))
Is there any way I can achieve this?
Thanks!
I have a sheet (Joblist) that contains 8 columns.
Column "A" contains a list of customer IDs. So, 1 for Joe Blogs, 2 for Jane Blogs, 3 for Mike Blogs, etc...
Column "F" contains specific jobs that have been requested for complete for the corresponding customer ID. For example, "Boiler Breakdown".
Column "H" contains the status of that job, so it will either be, "Resolved", "On-going" or "Ended". Again, corresponding to the specific job in that row.
All over columns contain irrelevant information to this task.
I have another sheet that allows me to search through data in the "CustomerList" by entering a customer name, this shows me a specific customers address etc. This is easily achieved using the "VLookup" function as there is only one instance of each person. However, what I'm trying to do with this new sheet is obtain data that contains multiple instances of the lookup value.
For example, Joe Blogs (Customer ID - 1) may of had 2 jobs over the last 2 weeks, one 'Resolved', one 'On-going'. Then, Mike Blogs may have 3 jobs done over the last week, 2 'Resolved', 1 'On-going'. I need it to search for the 'On-going' job relating to the customer ID (in this case 1) and skip past any 'Resolved' jobs.
I've tried using the following formula, however it just goes straight to last instance of the customer ID, regardless of what the status is.
=IF(LOOKUP(2,1/(JobList!A:A=C3),JobList!H:H)="Resolved",LOOKUP(2,1/(JobList!A:A=C3),JobList!H:H),IF(LOOKUP(2,1/(JobList!A:A=C3),JobList!H:H)="On-going",LOOKUP(2,1/(JobList!A:A=C3),JobList!F:F),"ERROR"))
Is there any way I can achieve this?
Thanks!