Hi all, I'm new here (for posting at least, have gotten many answers in Google from these forums) but have been around Excel quite a long time. Today I have a workbook where historical trouble ticket data is saved in one tab and recently added tickets (and other tickets that are still in progress). Today I use VLookup to update 2 of the fields in the historical table (current ticket state and resolution set). Since the second table does not include the older tickets we manually force set the 2 lookup fields to the final value they had (else the dreaded #NA). While this is working just fine it tends to get slower and slower the more data we have in the historical table.
My first thought was to recreate the tables in MS Access which I did and using the following query was able to do the same updating we did in Excel with VLookup and it runs very quickly but not everyone in the team has the MS Access tool. Here is my MS Access query:
So I was then required to try to replicate the faster updating I did in MS Access but do it in Excel. I've tried several ways to do this using Power Query but all I ever get is the fields in the first and second tables all on one row (expectation is to update first table if data in second, else leave it static and add any new rows the second table has that did not yet exist in the historical table.
Hopefully this is not too vague and someone can see what I'm wishing to do here. If you can help I'm already very pleased (even if you cannot help) just for you to have gotten to the end of this long posting.
DocMCSE
My first thought was to recreate the tables in MS Access which I did and using the following query was able to do the same updating we did in Excel with VLookup and it runs very quickly but not everyone in the team has the MS Access tool. Here is my MS Access query:
Code:
UPDATE [Open this month]
LEFT JOIN [SDEL Daily]
ON [Open this month].[Ticket Number]=[SDEL Daily].[Ticket Number]
SET [SDEL Daily].[Ticket Number] = [Open this month].[Ticket Number]
, [SDEL Daily].[Ticket State] = [Open this month].[Ticket State]
, [SDEL Daily].Severity = [Open this month].[Severity]
, [SDEL Daily].[Reported Product] = [Open this month].[Reported Product]
, [SDEL Daily].[Work Queue] = [Open this month].[Work Queue]
, [SDEL Daily].[Asset Id] = [Open this month].[Asset Id]
, [SDEL Daily].ATTUID = [Open this month].[ATTID]
, [SDEL Daily].[Location Id] = [Open this month].[Location Id]
, [SDEL Daily].[Ticket Opened Date] = [Open this month].[Ticket Opened Date EST]
, [SDEL Daily].[Resolution Set] = [Open this month].[Resolution Set Name]
, [SDEL Daily].[Cost Center] = [Open this month].[Cost Center];
So I was then required to try to replicate the faster updating I did in MS Access but do it in Excel. I've tried several ways to do this using Power Query but all I ever get is the fields in the first and second tables all on one row (expectation is to update first table if data in second, else leave it static and add any new rows the second table has that did not yet exist in the historical table.
Hopefully this is not too vague and someone can see what I'm wishing to do here. If you can help I'm already very pleased (even if you cannot help) just for you to have gotten to the end of this long posting.
DocMCSE