A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup is adding quotes!



 
 
Thread Tools Display Modes
  #1  
Old September 25th, 2008, 11:40 AM posted to microsoft.public.excel.worksheet.functions
Michael Enoksen
external usenet poster
 
Posts: 1
Default Vlookup is adding quotes!

I am trying to count number people based on dates.

On one sheet I have an array that has names and dates for a particular course.
ABG!$F$501:$F$599

On another sheet I have an array of formulas that are specific to that course.
""&EDATE(TODAY(),-24)

On a 3rd sheet I am trying to count the number of people that have dates
within my specific range.
=COUNTIF(ABG!$F$501:$F$599,(VLOOKUP(B5,Courses!$A$ 1:$C$24,3,FALSE)))

I am trying to make the sheet complete lookups based on the course. The
courses can possibly be moved in the future or else I would simply put the
formula in the counting cell.
=COUNTIF(ABG!$F$501:$F$599,""&EDATE(TODAY(),-24))

My problem is vLookup is automatically adding in quotes so it looks like
this:
=COUNTIF(ABG!$F$501:$F$599,"""""&EDATE(TODAY(),-24)")

I tried removing the quotes from the cell reference but when the quotes are
added it comes back:
=COUNTIF(ABG!$F$501:$F$599,"&EDATE(TODAY(),-24)")
and I need there to be a " after the sign or the formula will not work.

Of course being a man I hate asking for help but I need it so here I am
asking.

Thanks.
  #2  
Old September 25th, 2008, 02:10 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Vlookup is adding quotes!

I think you'll want to share those formulas on that other sheet.

Do they look like:
=""&edate(today(),-24)
or something else?

Michael Enoksen wrote:

I am trying to count number people based on dates.

On one sheet I have an array that has names and dates for a particular course.
ABG!$F$501:$F$599

On another sheet I have an array of formulas that are specific to that course.
""&EDATE(TODAY(),-24)

On a 3rd sheet I am trying to count the number of people that have dates
within my specific range.
=COUNTIF(ABG!$F$501:$F$599,(VLOOKUP(B5,Courses!$A$ 1:$C$24,3,FALSE)))

I am trying to make the sheet complete lookups based on the course. The
courses can possibly be moved in the future or else I would simply put the
formula in the counting cell.
=COUNTIF(ABG!$F$501:$F$599,""&EDATE(TODAY(),-24))

My problem is vLookup is automatically adding in quotes so it looks like
this:
=COUNTIF(ABG!$F$501:$F$599,"""""&EDATE(TODAY(),-24)")

I tried removing the quotes from the cell reference but when the quotes are
added it comes back:
=COUNTIF(ABG!$F$501:$F$599,"&EDATE(TODAY(),-24)")
and I need there to be a " after the sign or the formula will not work.

Of course being a man I hate asking for help but I need it so here I am
asking.

Thanks.


--

Dave Peterson
  #3  
Old September 25th, 2008, 02:50 PM posted to microsoft.public.excel.worksheet.functions
Michael Enoksen[_2_]
external usenet poster
 
Posts: 1
Default Vlookup is adding quotes!

I do not have = in front of the formula because I don't want it to...hmm I
suppose I could have it do the conversion in the one sheet and then have the
vlookup refer to the result rather than using the formula. Unfortunately, I
am no longer at my office computer so I will have to check that tomorrow.

Thank you for a a possible direction...
Mike

"Dave Peterson" wrote:

I think you'll want to share those formulas on that other sheet.

Do they look like:
=""&edate(today(),-24)
or something else?

Michael Enoksen wrote:

I am trying to count number people based on dates.

On one sheet I have an array that has names and dates for a particular course.
ABG!$F$501:$F$599

On another sheet I have an array of formulas that are specific to that course.
""&EDATE(TODAY(),-24)

On a 3rd sheet I am trying to count the number of people that have dates
within my specific range.
=COUNTIF(ABG!$F$501:$F$599,(VLOOKUP(B5,Courses!$A$ 1:$C$24,3,FALSE)))

I am trying to make the sheet complete lookups based on the course. The
courses can possibly be moved in the future or else I would simply put the
formula in the counting cell.
=COUNTIF(ABG!$F$501:$F$599,""&EDATE(TODAY(),-24))

My problem is vLookup is automatically adding in quotes so it looks like
this:
=COUNTIF(ABG!$F$501:$F$599,"""""&EDATE(TODAY(),-24)")

I tried removing the quotes from the cell reference but when the quotes are
added it comes back:
=COUNTIF(ABG!$F$501:$F$599,"&EDATE(TODAY(),-24)")
and I need there to be a " after the sign or the formula will not work.

Of course being a man I hate asking for help but I need it so here I am
asking.

Thanks.


--

Dave Peterson

  #4  
Old September 25th, 2008, 03:37 PM posted to microsoft.public.excel.worksheet.functions
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Vlookup is adding quotes!

If you don't have a formula in those cells, then edate() is just plain old
text--it won't be evaluated as a date.

Michael Enoksen wrote:

I do not have = in front of the formula because I don't want it to...hmm I
suppose I could have it do the conversion in the one sheet and then have the
vlookup refer to the result rather than using the formula. Unfortunately, I
am no longer at my office computer so I will have to check that tomorrow.

Thank you for a a possible direction...
Mike

"Dave Peterson" wrote:

I think you'll want to share those formulas on that other sheet.

Do they look like:
=""&edate(today(),-24)
or something else?

Michael Enoksen wrote:

I am trying to count number people based on dates.

On one sheet I have an array that has names and dates for a particular course.
ABG!$F$501:$F$599

On another sheet I have an array of formulas that are specific to that course.
""&EDATE(TODAY(),-24)

On a 3rd sheet I am trying to count the number of people that have dates
within my specific range.
=COUNTIF(ABG!$F$501:$F$599,(VLOOKUP(B5,Courses!$A$ 1:$C$24,3,FALSE)))

I am trying to make the sheet complete lookups based on the course. The
courses can possibly be moved in the future or else I would simply put the
formula in the counting cell.
=COUNTIF(ABG!$F$501:$F$599,""&EDATE(TODAY(),-24))

My problem is vLookup is automatically adding in quotes so it looks like
this:
=COUNTIF(ABG!$F$501:$F$599,"""""&EDATE(TODAY(),-24)")

I tried removing the quotes from the cell reference but when the quotes are
added it comes back:
=COUNTIF(ABG!$F$501:$F$599,"&EDATE(TODAY(),-24)")
and I need there to be a " after the sign or the formula will not work.

Of course being a man I hate asking for help but I need it so here I am
asking.

Thanks.


--

Dave Peterson


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.