A Microsoft Excel forum. ExcelBanter

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 » ExcelBanter forum » Excel Newsgroups » Excel Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Adding extra criteria



 
 
Thread Tools Display Modes
  #1  
Old March 10th 09, 10:06 AM posted to microsoft.public.excel.worksheet.functions
EVH5150
external usenet poster
 
Posts: 3
Default Adding extra criteria

Hi, I've got the following formula & need to add an IF(AND "Draw", "Sub (Used
+80)".

=IF(AND($F$7="Win",F16="Started"),VLOOKUP(B16,Shee t1!$A$3:$L$31,5,FALSE),IF(AND($F$7="Win",F16="Sub
(Not
Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,7,FALSE),IF( AND($F$7="Win",F16="Sub
(Used
-80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(AN D($F$7="Win",F16="Sub
(Used
+80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(A ND($F$7="Draw",F16="Sub
(Used
-80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,10,FALSE),IF(A ND($F$7="Draw",F16="Sub
(Not
Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,11,FALSE),IF (AND($F$7="Draw",F16="Started"),VLOOKUP(B16,Sheet1 !$A$3:$L$31,9,FALSE),"0")))))))

Now when i do add this it rejects the addition stating that there is an
error. All i'm adding is the same as all the other IF(AND's that are already
in there.
The return amount for the amount of +80 is the same as -80.
If i change the -80 to +80 it works fine but I then can't add -80?
What am i missing?

Thanks

--
EVH5150
Ads
  #2  
Old March 10th 09, 02:02 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 5,444
Default Adding extra criteria

Sounds like you are extracting a cell from a table based on B16 and F16 (and win vs draw)..
something along the lines of this formula, though you will need to change your headers so they are
unique: Ie, you have Sub (Used-80) for both Win and Draw, but they would be better changed to Win
Sub (Used-80) and Draw Sub (Used-80)

=INDEX(Sheet1!$A$3:$L$31,MATCH(B16,Sheet1!$A$3:$A$ 31,FALSE),MATCH(F16,Sheet1!$A$3:$L$3,FALSE))

HTH,
Bernie
MS Excel MVP


"EVH5150" > wrote in message
...
> Hi, I've got the following formula & need to add an IF(AND "Draw", "Sub (Used
> +80)".
>
> =IF(AND($F$7="Win",F16="Started"),VLOOKUP(B16,Shee t1!$A$3:$L$31,5,FALSE),IF(AND($F$7="Win",F16="Sub
> (Not
> Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,7,FALSE),IF( AND($F$7="Win",F16="Sub
> (Used
> -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(AN D($F$7="Win",F16="Sub
> (Used
> +80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(A ND($F$7="Draw",F16="Sub
> (Used
> -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,10,FALSE),IF(A ND($F$7="Draw",F16="Sub
> (Not
> Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,11,FALSE),IF (AND($F$7="Draw",F16="Started"),VLOOKUP(B16,Sheet1 !$A$3:$L$31,9,FALSE),"0")))))))
>
> Now when i do add this it rejects the addition stating that there is an
> error. All i'm adding is the same as all the other IF(AND's that are already
> in there.
> The return amount for the amount of +80 is the same as -80.
> If i change the -80 to +80 it works fine but I then can't add -80?
> What am i missing?
>
> Thanks
>
> --
> EVH5150



  #3  
Old March 10th 09, 03:25 PM posted to microsoft.public.excel.worksheet.functions
EVH5150
external usenet poster
 
Posts: 3
Default Adding extra criteria

Thanks Bernie, but unfortunately i can't really changed the headers as other
formulas are driven by them as well.

Ideally i need a way to incorporate the draw +80 into this formula. I'm not
sure why it's only on draw that i have this problem as in the result of a win
then +80 or -80 is picked up?

--
EVH5150


"Bernie Deitrick" wrote:

> Sounds like you are extracting a cell from a table based on B16 and F16 (and win vs draw)..
> something along the lines of this formula, though you will need to change your headers so they are
> unique: Ie, you have Sub (Used-80) for both Win and Draw, but they would be better changed to Win
> Sub (Used-80) and Draw Sub (Used-80)
>
> =INDEX(Sheet1!$A$3:$L$31,MATCH(B16,Sheet1!$A$3:$A$ 31,FALSE),MATCH(F16,Sheet1!$A$3:$L$3,FALSE))
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "EVH5150" > wrote in message
> ...
> > Hi, I've got the following formula & need to add an IF(AND "Draw", "Sub (Used
> > +80)".
> >
> > =IF(AND($F$7="Win",F16="Started"),VLOOKUP(B16,Shee t1!$A$3:$L$31,5,FALSE),IF(AND($F$7="Win",F16="Sub
> > (Not
> > Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,7,FALSE),IF( AND($F$7="Win",F16="Sub
> > (Used
> > -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(AN D($F$7="Win",F16="Sub
> > (Used
> > +80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(A ND($F$7="Draw",F16="Sub
> > (Used
> > -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,10,FALSE),IF(A ND($F$7="Draw",F16="Sub
> > (Not
> > Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,11,FALSE),IF (AND($F$7="Draw",F16="Started"),VLOOKUP(B16,Sheet1 !$A$3:$L$31,9,FALSE),"0")))))))
> >
> > Now when i do add this it rejects the addition stating that there is an
> > error. All i'm adding is the same as all the other IF(AND's that are already
> > in there.
> > The return amount for the amount of +80 is the same as -80.
> > If i change the -80 to +80 it works fine but I then can't add -80?
> > What am i missing?
> >
> > Thanks
> >
> > --
> > EVH5150

>
>
>

  #4  
Old March 10th 09, 04:25 PM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 5,444
Default Adding extra criteria

You can add in an offset for the Draw basis like this (pick up four columns over) if your column
heading repeat after four columns:

=INDEX(Sheet1!$A$3:$L$31,MATCH(B16,Sheet1!$A$3:$A$ 31,FALSE),IF(F7="Draw",4,0)+MATCH(F16,Sheet1!$A$3: $L$3,FALSE))

HTH,
Bernie
MS Excel MVP


"EVH5150" > wrote in message
...
> Thanks Bernie, but unfortunately i can't really changed the headers as other
> formulas are driven by them as well.
>
> Ideally i need a way to incorporate the draw +80 into this formula. I'm not
> sure why it's only on draw that i have this problem as in the result of a win
> then +80 or -80 is picked up?
>
> --
> EVH5150
>
>
> "Bernie Deitrick" wrote:
>
>> Sounds like you are extracting a cell from a table based on B16 and F16 (and win vs draw)..
>> something along the lines of this formula, though you will need to change your headers so they
>> are
>> unique: Ie, you have Sub (Used-80) for both Win and Draw, but they would be better changed to Win
>> Sub (Used-80) and Draw Sub (Used-80)
>>
>> =INDEX(Sheet1!$A$3:$L$31,MATCH(B16,Sheet1!$A$3:$A$ 31,FALSE),MATCH(F16,Sheet1!$A$3:$L$3,FALSE))
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>>
>> "EVH5150" > wrote in message
>> ...
>> > Hi, I've got the following formula & need to add an IF(AND "Draw", "Sub (Used
>> > +80)".
>> >
>> > =IF(AND($F$7="Win",F16="Started"),VLOOKUP(B16,Shee t1!$A$3:$L$31,5,FALSE),IF(AND($F$7="Win",F16="Sub
>> > (Not
>> > Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,7,FALSE),IF( AND($F$7="Win",F16="Sub
>> > (Used
>> > -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(AN D($F$7="Win",F16="Sub
>> > (Used
>> > +80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(A ND($F$7="Draw",F16="Sub
>> > (Used
>> > -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,10,FALSE),IF(A ND($F$7="Draw",F16="Sub
>> > (Not
>> > Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,11,FALSE),IF (AND($F$7="Draw",F16="Started"),VLOOKUP(B16,Sheet1 !$A$3:$L$31,9,FALSE),"0")))))))
>> >
>> > Now when i do add this it rejects the addition stating that there is an
>> > error. All i'm adding is the same as all the other IF(AND's that are already
>> > in there.
>> > The return amount for the amount of +80 is the same as -80.
>> > If i change the -80 to +80 it works fine but I then can't add -80?
>> > What am i missing?
>> >
>> > Thanks
>> >
>> > --
>> > EVH5150

>>
>>
>>



  #5  
Old March 10th 09, 05:10 PM posted to microsoft.public.excel.worksheet.functions
EVH5150
external usenet poster
 
Posts: 3
Default Adding extra criteria

Thanks for the help, In the end i actually added Left,f16,6 to pick up "Sub
(U" seeing as it's either going to be Sub (Used +80 or -80) & the other Sub
is (Not Used) then I only need to read the first 6 letters.
Thanks
--
EVH5150


"Bernie Deitrick" wrote:

> You can add in an offset for the Draw basis like this (pick up four columns over) if your column
> heading repeat after four columns:
>
> =INDEX(Sheet1!$A$3:$L$31,MATCH(B16,Sheet1!$A$3:$A$ 31,FALSE),IF(F7="Draw",4,0)+MATCH(F16,Sheet1!$A$3: $L$3,FALSE))
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "EVH5150" > wrote in message
> ...
> > Thanks Bernie, but unfortunately i can't really changed the headers as other
> > formulas are driven by them as well.
> >
> > Ideally i need a way to incorporate the draw +80 into this formula. I'm not
> > sure why it's only on draw that i have this problem as in the result of a win
> > then +80 or -80 is picked up?
> >
> > --
> > EVH5150
> >
> >
> > "Bernie Deitrick" wrote:
> >
> >> Sounds like you are extracting a cell from a table based on B16 and F16 (and win vs draw)..
> >> something along the lines of this formula, though you will need to change your headers so they
> >> are
> >> unique: Ie, you have Sub (Used-80) for both Win and Draw, but they would be better changed to Win
> >> Sub (Used-80) and Draw Sub (Used-80)
> >>
> >> =INDEX(Sheet1!$A$3:$L$31,MATCH(B16,Sheet1!$A$3:$A$ 31,FALSE),MATCH(F16,Sheet1!$A$3:$L$3,FALSE))
> >>
> >> HTH,
> >> Bernie
> >> MS Excel MVP
> >>
> >>
> >> "EVH5150" > wrote in message
> >> ...
> >> > Hi, I've got the following formula & need to add an IF(AND "Draw", "Sub (Used
> >> > +80)".
> >> >
> >> > =IF(AND($F$7="Win",F16="Started"),VLOOKUP(B16,Shee t1!$A$3:$L$31,5,FALSE),IF(AND($F$7="Win",F16="Sub
> >> > (Not
> >> > Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,7,FALSE),IF( AND($F$7="Win",F16="Sub
> >> > (Used
> >> > -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(AN D($F$7="Win",F16="Sub
> >> > (Used
> >> > +80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,6,FALSE),IF(A ND($F$7="Draw",F16="Sub
> >> > (Used
> >> > -80)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,10,FALSE),IF(A ND($F$7="Draw",F16="Sub
> >> > (Not
> >> > Used)"),VLOOKUP(B16,Sheet1!$A$3:$L$31,11,FALSE),IF (AND($F$7="Draw",F16="Started"),VLOOKUP(B16,Sheet1 !$A$3:$L$31,9,FALSE),"0")))))))
> >> >
> >> > Now when i do add this it rejects the addition stating that there is an
> >> > error. All i'm adding is the same as all the other IF(AND's that are already
> >> > in there.
> >> > The return amount for the amount of +80 is the same as -80.
> >> > If i change the -80 to +80 it works fine but I then can't add -80?
> >> > What am i missing?
> >> >
> >> > Thanks
> >> >
> >> > --
> >> > EVH5150
> >>
> >>
> >>

>
>
>

 




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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding extra data to a chart Tracey Charts and Charting in Excel 1 June 9th 08 10:58 PM
Adding an extra row after every existing row Josh W Excel Discussion (Misc queries) 10 April 14th 08 09:56 PM
Adding and Removing Extra Pages Marcus Feldmore Excel Discussion (Misc queries) 1 January 23rd 08 06:42 PM
tab delimited adding extra tabs maryj Excel Discussion (Misc queries) 0 April 18th 07 07:50 PM
adding extra digits to columns Muhammed Rafeek M Excel Discussion (Misc queries) 0 August 21st 06 10:35 AM


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


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