ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   VLOOKUP problem (https://www.excelbanter.com/new-users-excel/207355-vlookup-problem.html)

Kim

VLOOKUP problem
 
I'm using VLOOKUP in Sheet1 to pull in column C from Sheet2 containing
percentage variances from columns A and B.

The problem is that for yesterday's date, which is =TODAY()-1, it's not
pulling the correct percentage. Very weird. It's pulling in 0% variance,
which is not what I see on Sheet2, Column C.

The odd thing is that the variances for all other days before yesterday are
being pulled in correctly.

Any suggestions?


-- Thanks,
-Kim

Bernard Liengme

VLOOKUP problem
 
Show us the formula you are using, please
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Kim" wrote in message
...
I'm using VLOOKUP in Sheet1 to pull in column C from Sheet2 containing
percentage variances from columns A and B.

The problem is that for yesterday's date, which is =TODAY()-1, it's not
pulling the correct percentage. Very weird. It's pulling in 0% variance,
which is not what I see on Sheet2, Column C.

The odd thing is that the variances for all other days before yesterday
are
being pulled in correctly.

Any suggestions?


-- Thanks,
-Kim




Kim

VLOOKUP problem
 
Formulas in Sheet1 (referring to dates in column Q):

=VLOOKUP(Q16,data!$C:$BM,9,FALSE)
=VLOOKUP(Q17,data!$C:$BM,9,FALSE)

Formulas in Sheet2 (calculating % variance between H and F):
=H315/F315-1
=H316/F316-1


--
-Kim


"Bernard Liengme" wrote:

Show us the formula you are using, please
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Kim" wrote in message
...
I'm using VLOOKUP in Sheet1 to pull in column C from Sheet2 containing
percentage variances from columns A and B.

The problem is that for yesterday's date, which is =TODAY()-1, it's not
pulling the correct percentage. Very weird. It's pulling in 0% variance,
which is not what I see on Sheet2, Column C.

The odd thing is that the variances for all other days before yesterday
are
being pulled in correctly.

Any suggestions?


-- Thanks,
-Kim





Bernard Liengme

VLOOKUP problem
 
If I type =TODAY()-1 in A1 and 21/10/2008 in B1 then the formula =A1=B1
returns TRUE
So your method looks OK

If you look in column C of worksheet Data do you see a date fro yesterday?
Suppose it is in C45
On the other sheet try =(TODAY()-1) = Data!C45
Do you get TRUE?

I would be happy to look at the file - use my private email not the
newsgroup
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Kim" wrote in message
...
Formulas in Sheet1 (referring to dates in column Q):

=VLOOKUP(Q16,data!$C:$BM,9,FALSE)
=VLOOKUP(Q17,data!$C:$BM,9,FALSE)

Formulas in Sheet2 (calculating % variance between H and F):
=H315/F315-1
=H316/F316-1


--
-Kim


"Bernard Liengme" wrote:

Show us the formula you are using, please
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"Kim" wrote in message
...
I'm using VLOOKUP in Sheet1 to pull in column C from Sheet2 containing
percentage variances from columns A and B.

The problem is that for yesterday's date, which is =TODAY()-1, it's not
pulling the correct percentage. Very weird. It's pulling in 0%
variance,
which is not what I see on Sheet2, Column C.

The odd thing is that the variances for all other days before yesterday
are
being pulled in correctly.

Any suggestions?


-- Thanks,
-Kim








All times are GMT +1. The time now is 11:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com