#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default VLOOKUP

When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?

ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default VLOOKUP

The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.

The problem is likely to be related to your environment when you run the
code.

--
Regards,
Tom Ogilvy


"Nena" wrote:

When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?

ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default VLOOKUP

Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?

On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.

The problem is likely to be related to your environment when you run the
code.

--
Regards,
Tom Ogilvy



"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default VLOOKUP

It does that when the sheet name in the formula does not match any sheets in
the workbook. For example, when I first put tested it, I had an extra space
after the second 'Fall 2006 Cohort ' rather then 'Fall 2006 Cohort' and
got the same thing. Once I corrected the sheet name in the formula it went
away. If you believe your formula is correct, then check the actuall sheet
name and make sure it doesn't have an added space on one of the ends or
inside the name.

--
Regards,
Tom Ogilvy


"Nena" wrote:

Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?

On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.

The problem is likely to be related to your environment when you run the
code.

--
Regards,
Tom Ogilvy



"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default VLOOKUP

Problem solved! Thanks :)

On Aug 29, 11:16 am, Tom Ogilvy
wrote:
It does that when the sheet name in the formula does not match any sheets in
the workbook. For example, when I first put tested it, I had an extra space
after the second 'Fall 2006 Cohort ' rather then 'Fall 2006 Cohort' and
got the same thing. Once I corrected the sheet name in the formula it went
away. If you believe your formula is correct, then check the actuall sheet
name and make sure it doesn't have an added space on one of the ends or
inside the name.

--
Regards,
Tom Ogilvy



"Nena" wrote:
Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?


On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.


The problem is likely to be related to your environment when you run the
code.


--
Regards,
Tom Ogilvy


"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default VLOOKUP

Tom, you've been helpful and right in the past. So I was hoping that
you could help me with this one too. The following macro doesn't seem
to be working...

Cells(6 + y, 14) = Evaluate("=sumproduct((Fall_2006_Cohort!
AB2:AB65536=1)*(Fall_2006_Cohort!N2:N65536=""A14"" ))")

For some reason, it won't pick up the A14 in my column but it will
pick up other text such as RVA. Is the combination between letters and
numbers? I'm not quite sure.

Thanks in advance.
On Aug 29, 11:16 am, Tom Ogilvy
wrote:
It does that when the sheet name in the formula does not match any sheets in
the workbook. For example, when I first put tested it, I had an extra space
after the second 'Fall 2006 Cohort ' rather then 'Fall 2006 Cohort' and
got the same thing. Once I corrected the sheet name in the formula it went
away. If you believe your formula is correct, then check the actuall sheet
name and make sure it doesn't have an added space on one of the ends or
inside the name.

--
Regards,
Tom Ogilvy



"Nena" wrote:
Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?


On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.


The problem is likely to be related to your environment when you run the
code.


--
Regards,
Tom Ogilvy


"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default VLOOKUP

With no testing at all...

Cells(6 + y, 14) _
= Evaluate("sumproduct((Fall_2006_Cohort!AB2:AB65536 =1)" _
& "*(Fall_2006_Cohort!N2:N65536=A14))")

When you use ""A14"" in your code, the formula is looking at the string "A14",
not what's in the cell A14.



Nena wrote:

Tom, you've been helpful and right in the past. So I was hoping that
you could help me with this one too. The following macro doesn't seem
to be working...

Cells(6 + y, 14) = Evaluate("=sumproduct((Fall_2006_Cohort!
AB2:AB65536=1)*(Fall_2006_Cohort!N2:N65536=""A14"" ))")

For some reason, it won't pick up the A14 in my column but it will
pick up other text such as RVA. Is the combination between letters and
numbers? I'm not quite sure.

Thanks in advance.
On Aug 29, 11:16 am, Tom Ogilvy
wrote:
It does that when the sheet name in the formula does not match any sheets in
the workbook. For example, when I first put tested it, I had an extra space
after the second 'Fall 2006 Cohort ' rather then 'Fall 2006 Cohort' and
got the same thing. Once I corrected the sheet name in the formula it went
away. If you believe your formula is correct, then check the actuall sheet
name and make sure it doesn't have an added space on one of the ends or
inside the name.

--
Regards,
Tom Ogilvy



"Nena" wrote:
Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?


On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.


The problem is likely to be related to your environment when you run the
code.


--
Regards,
Tom Ogilvy


"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default VLOOKUP

Nevermind Tom, I figured out the error.

On Aug 29, 11:16 am, Tom Ogilvy
wrote:
It does that when the sheet name in the formula does not match any sheets in
the workbook. For example, when I first put tested it, I had an extra space
after the second 'Fall 2006 Cohort ' rather then 'Fall 2006 Cohort' and
got the same thing. Once I corrected the sheet name in the formula it went
away. If you believe your formula is correct, then check the actuall sheet
name and make sure it doesn't have an added space on one of the ends or
inside the name.

--
Regards,
Tom Ogilvy



"Nena" wrote:
Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?


On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.


The problem is likely to be related to your environment when you run the
code.


--
Regards,
Tom Ogilvy


"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default VLOOKUP

Thanks.

On Sep 6, 1:53 pm, Dave Peterson wrote:
With no testing at all...

Cells(6 + y, 14) _
= Evaluate("sumproduct((Fall_2006_Cohort!AB2:AB65536 =1)" _
& "*(Fall_2006_Cohort!N2:N65536=A14))")

When you use ""A14"" in your code, the formula is looking at the string "A14",
not what's in the cell A14.





Nena wrote:

Tom, you've been helpful and right in the past. So I was hoping that
you could help me with this one too. The following macro doesn't seem
to be working...


Cells(6 + y, 14) = Evaluate("=sumproduct((Fall_2006_Cohort!
AB2:AB65536=1)*(Fall_2006_Cohort!N2:N65536=""A14"" ))")


For some reason, it won't pick up the A14 in my column but it will
pick up other text such as RVA. Is the combination between letters and
numbers? I'm not quite sure.


Thanks in advance.
On Aug 29, 11:16 am, Tom Ogilvy
wrote:
It does that when the sheet name in the formula does not match any sheets in
the workbook. For example, when I first put tested it, I had an extra space
after the second 'Fall 2006 Cohort ' rather then 'Fall 2006 Cohort' and
got the same thing. Once I corrected the sheet name in the formula it went
away. If you believe your formula is correct, then check the actuall sheet
name and make sure it doesn't have an added space on one of the ends or
inside the name.


--
Regards,
Tom Ogilvy


"Nena" wrote:
Thanks Tom! It now runs however when the macro runs through each cell
it gives me a pop box (the one that asks if you would like to save or
open etc) and then it proceeds to the next cell. Any idea why this
might be occurring?


On Aug 29, 9:52 am, Tom Ogilvy
wrote:
The code runs fine for me in xl2003. This would indicate that there is
nothing inherently wrong with your code.


The problem is likely to be related to your environment when you run the
code.


--
Regards,
Tom Ogilvy


"Nena" wrote:
When I try to run this macro I pop box says, "Excel cannot complete
this task with available resources. Choose less data". What am I doing
wrong?


ActiveCell.FormulaR1C1 = "=IF(ISNA(VLOOKUP(RC[-5],'Fall 2006 Cohort'!
R2C1:R65536C28,13,FALSE)=TRUE),"""", VLOOKUP(RC[-5],'Fall 2006
Cohort'! R2C1:R65536C28,13,FALSE))"
ActiveCell.Offset(0, 1).Select


Thanks in advance.- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


--

Dave Peterson- Hide quoted text -

- Show quoted text -



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? erikhs[_20_] Excel Programming 1 August 6th 06 06:18 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 07:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"