Hey everyone, I am working on a project using Excel 2007. There are two reports (A) and (B) that get generated daily. I am creating a new document which calls information from both reports, counts the number of entries and spits it out into a chart. The problem I am running into is that multiple people will be using this file from their own PCs. The path the formula calls from changes depending on which user is running it that day: 'C:\Users\username\desktop\filename'. My formula works if I specify my personal path but when I substitute the \Users\username with %homepath%, I get a dialog box asking which file to open. Here is the output of what happens:
=SUM(IF('C:\Users\v-cmeyer\Desktop\[GTS20Open20Work20Orders.xls]Sheet 1'!$B$1:$B$200="GTS Service Desk",1,0))WORKS
=SUM(IF('%HOMEPATH%\Desktop\[GTS20Open20Work20Orders.xls]Sheet 1'!$B$1:$B$200="GTS Service Desk",1,0))PROMPTS FOR FILE OPEN THEN WORKS, it turns formula into the following -
=SUM(IF('C:\Users\v-cmeyer\Desktop\%HOMEPATH%\Desktop\[GTS20Open20Work20Orders.xls]Sheet 1'!$B$1:$B$200="GTS Service Desk",1,0))
I have tried HOMEPATH alone, along with C: and %HOMEDRIVE% all with the same result. Any help on this would be greatly appreciated. Thanks in advance!