PC Review


Reply
Thread Tools Rate Thread

complicated Vlookup?

 
 
Doug
Guest
Posts: n/a
 
      19th Nov 2009
I was using this just fine. (returns a percentage change between two lookups)
=(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
Import'!$Q:$CA,4,FALSE)))-1

But when I tried to add IFERROR so that all error values would return a
blank, it said that I have to many arguments for this function
=IFERROR(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE),"",(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old Import'!$Q:$CA,4,FALSE)))-1)

I have been trying to figure this out for a while. What do I need to be
typing in instead? Thanks
--

 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      19th Nov 2009
The IFERROR function only takes two arguments... the expression to be
evaluated and the value to display if there is an error.

=IFERROR((VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
Import'!$Q:$CA,4,FALSE)))-1,"")

--
Rick (MVP - Excel)


"Doug" <(E-Mail Removed)> wrote in message
news:E7855958-9F26-4602-86A5-(E-Mail Removed)...
>I was using this just fine. (returns a percentage change between two
>lookups)
> =(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> Import'!$Q:$CA,4,FALSE)))-1
>
> But when I tried to add IFERROR so that all error values would return a
> blank, it said that I have to many arguments for this function.
> =IFERROR(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE),"",(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> Import'!$Q:$CA,4,FALSE)))-1)
>
> I have been trying to figure this out for a while. What do I need to be
> typing in instead? Thanks
> --
>


 
Reply With Quote
 
B Lynn B
Guest
Posts: n/a
 
      19th Nov 2009
you have given three arguments to the IFERROR function, (perhaps thinking of
how IF is structured), but it takes only 2. Those are: 1) the function to
test for error: and 2) the value to return if error is found. If no error is
found then it returns the result of the tested function.


"Doug" wrote:

> I was using this just fine. (returns a percentage change between two lookups)
> =(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> Import'!$Q:$CA,4,FALSE)))-1
>
> But when I tried to add IFERROR so that all error values would return a
> blank, it said that I have to many arguments for this function.
> =IFERROR(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE),"",(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old Import'!$Q:$CA,4,FALSE)))-1)
>
> I have been trying to figure this out for a while. What do I need to be
> typing in instead? Thanks
> --
>

 
Reply With Quote
 
Doug
Guest
Posts: n/a
 
      20th Nov 2009
Thanks for your time, but this only returns blank cells throughout the whole
column.
--
Thank you!


"Rick Rothstein" wrote:

> The IFERROR function only takes two arguments... the expression to be
> evaluated and the value to display if there is an error.
>
> =IFERROR((VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> Import'!$Q:$CA,4,FALSE)))-1,"")
>
> --
> Rick (MVP - Excel)
>
>
> "Doug" <(E-Mail Removed)> wrote in message
> news:E7855958-9F26-4602-86A5-(E-Mail Removed)...
> >I was using this just fine. (returns a percentage change between two
> >lookups)
> > =(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> > Import'!$Q:$CA,4,FALSE)))-1
> >
> > But when I tried to add IFERROR so that all error values would return a
> > blank, it said that I have to many arguments for this function.
> > =IFERROR(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE),"",(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> > Import'!$Q:$CA,4,FALSE)))-1)
> >
> > I have been trying to figure this out for a while. What do I need to be
> > typing in instead? Thanks
> > --
> >

>
> .
>

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      20th Nov 2009
You didn't give us any background on the formula you posted, so I simply
assumed it must be working for you. If you are getting nothing but blank
cells, then it must mean your formula is generating an error in every cell.
Not knowing anything about the construction or background of the formula
means we here will not be able to help you debug it. If you put the formula
in the cells just the way you posted it (without the IFERROR function), does
it work?

--
Rick (MVP - Excel)


"Doug" <(E-Mail Removed)> wrote in message
news:1F0A97D9-8487-4DB1-A684-(E-Mail Removed)...
> Thanks for your time, but this only returns blank cells throughout the
> whole
> column.
> --
> Thank you!
>
>
> "Rick Rothstein" wrote:
>
>> The IFERROR function only takes two arguments... the expression to be
>> evaluated and the value to display if there is an error.
>>
>> =IFERROR((VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
>> Import'!$Q:$CA,4,FALSE)))-1,"")
>>
>> --
>> Rick (MVP - Excel)
>>
>>
>> "Doug" <(E-Mail Removed)> wrote in message
>> news:E7855958-9F26-4602-86A5-(E-Mail Removed)...
>> >I was using this just fine. (returns a percentage change between two
>> >lookups)
>> > =(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
>> > Import'!$Q:$CA,4,FALSE)))-1
>> >
>> > But when I tried to add IFERROR so that all error values would return a
>> > blank, it said that I have to many arguments for this function.
>> > =IFERROR(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE),"",(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
>> > Import'!$Q:$CA,4,FALSE)))-1)
>> >
>> > I have been trying to figure this out for a while. What do I need to be
>> > typing in instead? Thanks
>> > --
>> >

>>
>> .
>>


 
Reply With Quote
 
Doug
Guest
Posts: n/a
 
      2nd Dec 2009
If I type it in like this with out the IFERROR, it says that the formula
contains an error.
=((VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
Import'!$Q:$CA,4,FALSE)))-1,"")
The formula below works fine, but does not omit the errors.
=(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
Import'!$Q:$CA,4,FALSE)))-1
--



"Rick Rothstein" wrote:

> You didn't give us any background on the formula you posted, so I simply
> assumed it must be working for you. If you are getting nothing but blank
> cells, then it must mean your formula is generating an error in every cell.
> Not knowing anything about the construction or background of the formula
> means we here will not be able to help you debug it. If you put the formula
> in the cells just the way you posted it (without the IFERROR function), does
> it work?
>
> --
> Rick (MVP - Excel)
>
>
> "Doug" <(E-Mail Removed)> wrote in message
> news:1F0A97D9-8487-4DB1-A684-(E-Mail Removed)...
> > Thanks for your time, but this only returns blank cells throughout the
> > whole
> > column.
> > --
> > Thank you!
> >
> >
> > "Rick Rothstein" wrote:
> >
> >> The IFERROR function only takes two arguments... the expression to be
> >> evaluated and the value to display if there is an error.
> >>
> >> =IFERROR((VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> >> Import'!$Q:$CA,4,FALSE)))-1,"")
> >>
> >> --
> >> Rick (MVP - Excel)
> >>
> >>
> >> "Doug" <(E-Mail Removed)> wrote in message
> >> news:E7855958-9F26-4602-86A5-(E-Mail Removed)...
> >> >I was using this just fine. (returns a percentage change between two
> >> >lookups)
> >> > =(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> >> > Import'!$Q:$CA,4,FALSE)))-1
> >> >
> >> > But when I tried to add IFERROR so that all error values would return a
> >> > blank, it said that I have to many arguments for this function.
> >> > =IFERROR(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE),"",(VLOOKUP($Q3,Import!$Q:$CA,4,FALSE)/(VLOOKUP($Q3,'Old
> >> > Import'!$Q:$CA,4,FALSE)))-1)
> >> >
> >> > I have been trying to figure this out for a while. What do I need to be
> >> > typing in instead? Thanks
> >> > --
> >> >
> >>
> >> .
> >>

>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complicated vlookup/min-max query...please help SAM Microsoft Excel Misc 6 27th Jun 2009 07:11 PM
COMPLICATED VLOOKUP shaqil Microsoft Excel Programming 8 12th Oct 2007 06:26 AM
Complicated VLOOKUP =?Utf-8?B?aXZvcnlfa2l0dGVu?= Microsoft Excel Programming 0 12th Sep 2006 03:00 AM
Complicated Vlookup/count problem swjtx Microsoft Excel Worksheet Functions 6 18th Dec 2005 12:05 AM
a somewhat complicated vlookup =?Utf-8?B?QnJpYW4=?= Microsoft Excel Worksheet Functions 10 15th Oct 2004 08:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:21 PM.