Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
DC DC is offline
external usenet poster
 
Posts: 42
Default nested IF(ISERROR()) statement

I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?

I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string then
take that value, if neither do then return a blank.

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE)),"",VLOOKUP(K16,nonpr,3,F ALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)), VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)*1000))))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default nested IF(ISERROR()) statement

Put the VLOOKUP formula in their own cells and reference these cells.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?

I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string
then
take that value, if neither do then return a blank.

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE)),"",VLOOKUP(K16,nonpr,3,F ALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)), VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)*1000))))



  #3   Report Post  
Posted to microsoft.public.excel.misc
DC DC is offline
external usenet poster
 
Posts: 42
Default nested IF(ISERROR()) statement

Thanks Bob, but I still get the 'too many arguments' message.

"Bob Phillips" wrote:

Put the VLOOKUP formula in their own cells and reference these cells.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?

I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string
then
take that value, if neither do then return a blank.

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE)),"",VLOOKUP(K16,nonpr,3,F ALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)), VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)*1000))))




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default nested IF(ISERROR()) statement

Your problem is after the first 1000, as you are trying to have
another parameter after the false argument of the IF. Try this
amendment:

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,
3,FALSE)),"",VLOOKUP(K16,nonpr,
3,FALSE)*1000),if(iserror(VLOOKUP(K16,nonpr,3,FALS E)),*VLOOKUP(K16,pr,
3,FALSE),VLOOKUP(K16,pr,3,FALSE)+VLOOKUP(K16,nonpr ,3,FALSE)**1000))

Hope this helps (and that I've counted all the brackets correctly)

Pete


On May 30, 3:35 pm, DC wrote:
Thanks Bob, but I still get the 'too many arguments' message.



"Bob Phillips" wrote:
Put the VLOOKUP formula in their own cells and reference these cells.


--
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)


"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?


I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string
then
take that value, if neither do then return a blank.


=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE))*,"",VLOOKUP(K16,nonpr,3, FALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)) ,*VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+ (VLOOKUP(K16,nonpr,3,FALSE)**1000))))- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.misc
DC DC is offline
external usenet poster
 
Posts: 42
Default nested IF(ISERROR()) statement

Excellent Pete, well spotted

not sure you meant to include the negative signs though.

Many thanks

"Pete_UK" wrote:

Your problem is after the first 1000, as you are trying to have
another parameter after the false argument of the IF. Try this
amendment:

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,
3,FALSE)),"",VLOOKUP(K16,nonpr,
3,FALSE)*1000),if(iserror(VLOOKUP(K16,nonpr,3,FALS E)),-VLOOKUP(K16,pr,
3,FALSE),VLOOKUP(K16,pr,3,FALSE)+VLOOKUP(K16,nonpr ,3,FALSE)-*1000))

Hope this helps (and that I've counted all the brackets correctly)

Pete


On May 30, 3:35 pm, DC wrote:
Thanks Bob, but I still get the 'too many arguments' message.



"Bob Phillips" wrote:
Put the VLOOKUP formula in their own cells and reference these cells.


--
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)


"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?


I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string
then
take that value, if neither do then return a blank.


=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE))-,"",VLOOKUP(K16,nonpr,3,FALSE)*1000,if(iserror(VLO OKUP(K16,nonpr,3,FALSE)),-VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)-*1000))))- Hide quoted text -


- Show quoted text -






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default nested IF(ISERROR()) statement

Make sure that you adjust Pete's formula to multiply the PR range by 1000 if
the value is found in *both* ranges.

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"DC" wrote in message
...
Excellent Pete, well spotted

not sure you meant to include the negative signs though.

Many thanks

"Pete_UK" wrote:

Your problem is after the first 1000, as you are trying to have
another parameter after the false argument of the IF. Try this
amendment:

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,
3,FALSE)),"",VLOOKUP(K16,nonpr,
3,FALSE)*1000),if(iserror(VLOOKUP(K16,nonpr,3,FALS E)),-VLOOKUP(K16,pr,
3,FALSE),VLOOKUP(K16,pr,3,FALSE)+VLOOKUP(K16,nonpr ,3,FALSE)-*1000))

Hope this helps (and that I've counted all the brackets correctly)

Pete


On May 30, 3:35 pm, DC wrote:
Thanks Bob, but I still get the 'too many arguments' message.



"Bob Phillips" wrote:
Put the VLOOKUP formula in their own cells and reference these cells.


--
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)


"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my
formula
below. What do I need to do to get it to work?


I have 2 tables, PR and nonPR, and I want to add values together
where the
left most strings match in each. If only one table contains the
string
then
take that value, if neither do then return a blank.


=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE))-,"",VLOOKUP(K16,nonpr,3,FALSE)*1000,if(iserror(VLO OKUP(K16,nonpr,3,FALSE)),-VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)-*1000))))-
Hide quoted text -


- Show quoted text -






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default nested IF(ISERROR()) statement

The negative signs are to do with word-wrap on the newsgroups - no,
they should not be included (and they don't show on Google Groups).

Glad it worked for you - thanks for feeding back.

Pete

On May 30, 4:40 pm, DC wrote:
Excellent Pete, well spotted

not sure you meant to include the negative signs though.

Many thanks



"Pete_UK" wrote:
Your problem is after the first 1000, as you are trying to have
another parameter after the false argument of the IF. Try this
amendment:


=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,
3,FALSE)),"",VLOOKUP(K16,nonpr,
3,FALSE)*1000),if(iserror(VLOOKUP(K16,nonpr,3,FALS E)),-VLOOKUP(K16,pr,
3,FALSE),VLOOKUP(K16,pr,3,FALSE)+VLOOKUP(K16,nonpr ,3,FALSE)-*1000))


Hope this helps (and that I've counted all the brackets correctly)


Pete


On May 30, 3:35 pm, DC wrote:
Thanks Bob, but I still get the 'too many arguments' message.


"Bob Phillips" wrote:
Put the VLOOKUP formula in their own cells and reference these cells.


--
HTH


Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)


"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?


I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string
then
take that value, if neither do then return a blank.


=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE))*-,"",VLOOKUP(K16,nonpr,3,FALSE)*1000,if(iserror(VLO OKUP(K16,nonpr,3,FALSE))*,-VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALS*E)-*1000))))- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default nested IF(ISERROR()) statement

See if this works for you:

=IF(ISNA(VLOOKUP(K16,PR,3,0)),IF(ISNA(VLOOKUP(K16, nonPR,3,0)),"",VLOOKUP(K16,nonPR,3,0)*1000),IF(ISN A(VLOOKUP(K16,nonPR,3,0)),VLOOKUP(K16,PR,3,0)*1000 ,(VLOOKUP(K16,PR,3,0)+VLOOKUP(K16,nonPR,3,0))*1000 ))
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"DC" wrote in message
...
Thanks Bob, but I still get the 'too many arguments' message.

"Bob Phillips" wrote:

Put the VLOOKUP formula in their own cells and reference these cells.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"DC" wrote in message
...
I get an 'you've entered too many arguements' error message with my
formula
below. What do I need to do to get it to work?

I have 2 tables, PR and nonPR, and I want to add values together where
the
left most strings match in each. If only one table contains the string
then
take that value, if neither do then return a blank.

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE)),"",VLOOKUP(K16,nonpr,3,F ALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)), VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)*1000))))






  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 422
Default nested IF(ISERROR()) statement

I'm confused here before anyone else in the thread is..
I'm looking for the FIRST action to be taken if the FIRST IF is true...
=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)), What to do if true goes here,
But there is nothing spelled out to do !!
(then and only then) should come the (creating a NESTED IF STATEMENT)
if(iserror(VLOOKUP(K16,nonpr,3,FALSE)),"" <<< Ok, here I see the
action to be taken if the second If statement is TRUE..

Does anyone else see my reason for confusion?

Thanks in advance.

Jim

"DC" wrote in message
:

I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?

I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string then
take that value, if neither do then return a blank.

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE)),"",VLOOKUP(K16,nonpr,3,F ALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)), VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)*1000))))


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 422
Default nested IF(ISERROR()) statement

Ok, reconsidering things here, I guess you can just as easily have a
nested if statement which says... If(TRUE,If(),otherwise whatever) --
If right, then Sorry for posting unnecessarily.



"JMay" wrote in message
:

I'm confused here before anyone else in the thread is..
I'm looking for the FIRST action to be taken if the FIRST IF is true...
=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)), What to do if true goes here,
But there is nothing spelled out to do !!
(then and only then) should come the (creating a NESTED IF STATEMENT)
if(iserror(VLOOKUP(K16,nonpr,3,FALSE)),"" <<< Ok, here I see the
action to be taken if the second If statement is TRUE..

Does anyone else see my reason for confusion?

Thanks in advance.

Jim

"DC" wrote in message
:

I get an 'you've entered too many arguements' error message with my formula
below. What do I need to do to get it to work?

I have 2 tables, PR and nonPR, and I want to add values together where the
left most strings match in each. If only one table contains the string then
take that value, if neither do then return a blank.

=IF(ISERROR(VLOOKUP(K16,pr,3,FALSE)),if(iserror(VL OOKUP(K16,nonpr,3,FALSE)),"",VLOOKUP(K16,nonpr,3,F ALSE)*1000,if(iserror(VLOOKUP(K16,nonpr,3,FALSE)), VLOOKUP(K16,pr,3,FALSE),VLOOKUP(K16,pr,3,FALSE)+(V LOOKUP(K16,nonpr,3,FALSE)*1000))))




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
IF STATEMENT - NESTED tojo107 Excel Worksheet Functions 4 April 19th 07 08:14 PM
Iserror nested within a conditional vlookup Dale Excel Worksheet Functions 3 January 5th 07 10:40 PM
Nested IF Statement Secret Squirrel Excel Discussion (Misc queries) 8 November 19th 06 02:43 AM
Nested IF/AND Statement buffgirl71 Excel Discussion (Misc queries) 1 October 10th 06 01:59 AM
Nested If statement rsbergeron Excel Worksheet Functions 1 June 30th 05 10:19 PM


All times are GMT +1. The time now is 05:02 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"