#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default VLOOKUP Function

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default VLOOKUP Function

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default VLOOKUP Function

Sorry, that was a typo. I do have it set up as 'CHARGES'!A$1:E$250. I have
used this exact formula on the identically formatted worksheets for 3 months.
I just can't see where I am going wrong. Thanks.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default VLOOKUP Function

I'm not sure if this helps, but when i open the argument box, it shows that
the VALUE IF FALSE= #N/A in red.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default VLOOKUP Function

Hi,

With the range correct theres nothing wrong with the formula so if it's
returning 0 then it isn't finding a match for L2 in the lookup array. Do a
manual check. Copy your value from L2 andpaste it into a cell in 'Charges'.
Rember Copy and paste don't type it.

manually find a match in column A an enter this formula in a cell =A10=H10
If they really match it will return TRUE, I suspect it will return False and
the likely culprits are spaces.

Mike

"infinite1013" wrote:

I'm not sure if this helps, but when i open the argument box, it shows that
the VALUE IF FALSE= #N/A in red.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default VLOOKUP Function

Okay. That helps. The result of this was FALSE. The spacing appears to be the
same, but not sure. Any way to check this?

"Mike H" wrote:

Hi,

With the range correct theres nothing wrong with the formula so if it's
returning 0 then it isn't finding a match for L2 in the lookup array. Do a
manual check. Copy your value from L2 andpaste it into a cell in 'Charges'.
Rember Copy and paste don't type it.

manually find a match in column A an enter this formula in a cell =A10=H10
If they really match it will return TRUE, I suspect it will return False and
the likely culprits are spaces.

Mike

"infinite1013" wrote:

I'm not sure if this helps, but when i open the argument box, it shows that
the VALUE IF FALSE= #N/A in red.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default VLOOKUP Function

Hi,

Len(a1) tells you how many characters are in the cell which you can compare
to how many you think you have. The rogue spaces are 'generally' leading or
traling and can be removed using

=Trim(a1) and drag down
You can then copy this corrected range and
Paste special - values on top of the offending range in column A.

Mike

"infinite1013" wrote:

Okay. That helps. The result of this was FALSE. The spacing appears to be the
same, but not sure. Any way to check this?

"Mike H" wrote:

Hi,

With the range correct theres nothing wrong with the formula so if it's
returning 0 then it isn't finding a match for L2 in the lookup array. Do a
manual check. Copy your value from L2 andpaste it into a cell in 'Charges'.
Rember Copy and paste don't type it.

manually find a match in column A an enter this formula in a cell =A10=H10
If they really match it will return TRUE, I suspect it will return False and
the likely culprits are spaces.

Mike

"infinite1013" wrote:

I'm not sure if this helps, but when i open the argument box, it shows that
the VALUE IF FALSE= #N/A in red.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default VLOOKUP Function

Success! Thanks so much!

"Mike H" wrote:

Hi,

Len(a1) tells you how many characters are in the cell which you can compare
to how many you think you have. The rogue spaces are 'generally' leading or
traling and can be removed using

=Trim(a1) and drag down
You can then copy this corrected range and
Paste special - values on top of the offending range in column A.

Mike

"infinite1013" wrote:

Okay. That helps. The result of this was FALSE. The spacing appears to be the
same, but not sure. Any way to check this?

"Mike H" wrote:

Hi,

With the range correct theres nothing wrong with the formula so if it's
returning 0 then it isn't finding a match for L2 in the lookup array. Do a
manual check. Copy your value from L2 andpaste it into a cell in 'Charges'.
Rember Copy and paste don't type it.

manually find a match in column A an enter this formula in a cell =A10=H10
If they really match it will return TRUE, I suspect it will return False and
the likely culprits are spaces.

Mike

"infinite1013" wrote:

I'm not sure if this helps, but when i open the argument box, it shows that
the VALUE IF FALSE= #N/A in red.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default VLOOKUP Function

Your most welcome, glad I could help

"infinite1013" wrote:

Success! Thanks so much!

"Mike H" wrote:

Hi,

Len(a1) tells you how many characters are in the cell which you can compare
to how many you think you have. The rogue spaces are 'generally' leading or
traling and can be removed using

=Trim(a1) and drag down
You can then copy this corrected range and
Paste special - values on top of the offending range in column A.

Mike

"infinite1013" wrote:

Okay. That helps. The result of this was FALSE. The spacing appears to be the
same, but not sure. Any way to check this?

"Mike H" wrote:

Hi,

With the range correct theres nothing wrong with the formula so if it's
returning 0 then it isn't finding a match for L2 in the lookup array. Do a
manual check. Copy your value from L2 andpaste it into a cell in 'Charges'.
Rember Copy and paste don't type it.

manually find a match in column A an enter this formula in a cell =A10=H10
If they really match it will return TRUE, I suspect it will return False and
the likely culprits are spaces.

Mike

"infinite1013" wrote:

I'm not sure if this helps, but when i open the argument box, it shows that
the VALUE IF FALSE= #N/A in red.

"Mike H" wrote:

Hi,

You have a single column array in your vlookup 'CHARGES'!A$1:A$250
and are trying to return something from column 5. Should it be this
'CHARGES'!A$1:E$250


Mike


"infinite1013" wrote:

I have 2 worksheets. I am trying to use a number(L2) on sheet 2 to reference
column A on sheet 1 and return a percentage from column 5 on the sheet 1. In
order to avoid the #N/A result, I am using the following formula, but getting
0.00% returned when I know there should be another result. This formula has
worked for me before, but can't figure out why it isn't working this time.
Please help! The formula looks like this:

=IF(ISERROR(VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE )),0,VLOOKUP(L2,'CHARGES'!A$1:A$250,5,FALSE))

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
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
Embedded VLOOKUP function within IF function beautyteknorth Excel Worksheet Functions 6 August 17th 06 09:31 AM
HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION CHAIM Excel Worksheet Functions 1 July 27th 05 09:10 PM
how do I write a vlookup function within an iserror function so t. JBLeeds Excel Worksheet Functions 2 March 16th 05 10:30 AM
I want to use Vlookup function and AND function in a single formu. prakash Excel Worksheet Functions 3 January 25th 05 07:11 AM


All times are GMT +1. The time now is 12:29 AM.

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"