Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dbl
 
Posts: n/a
Default If function using Index

Hi I am using the following formula in sheet Data Entry cell B14
=IF(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0),1)="AS A","NO","YES")
which works fine. But I need to add more to it as follows:

If the above also ="GIG", "NO","YES"
Plus if cell B33="ASA123456","YES","YES"

Cell B14 & B33 are on a sheet called Data Entry all the other info comes
from Sheet1

How do I add the above into my formula?

Bob


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Adding this part:

If the above also ="GIG", "NO","YES"


is no problem but you need to explain further how this part fits:

Plus if cell B33="ASA123456","YES","YES"


Unless it's a separate test:

=IF(OR(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0))={" ASA","GIG"}),"NO",IF('Data
Entry'!B33="ASA12346","YES","YES"))

Biff

"dbl" wrote in message
...
Hi I am using the following formula in sheet Data Entry cell B14
=IF(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0),1)="AS A","NO","YES")
which works fine. But I need to add more to it as follows:

If the above also ="GIG", "NO","YES"
Plus if cell B33="ASA123456","YES","YES"

Cell B14 & B33 are on a sheet called Data Entry all the other info comes
from Sheet1

How do I add the above into my formula?

Bob



  #3   Report Post  
dbl
 
Posts: n/a
Default

Biff there is one policy number (ASA123456) which is different from the rest

ASA is "NO" apart from the above which is "YES" so I cannot in this case use
the ASA part of the policy number.

The formula you have sent works in all scenarios apart from returning "NO"
for the above policy which should be "YES".

Is this because it picks up the ASA part in the formula and is then not over
ridden by the last part? I also take it that the last "YES" is the answer
if it finds none of the above? which is how it should work.

Thanks for your help.

Bob

"Biff" wrote in message
...
Hi!

Adding this part:

If the above also ="GIG", "NO","YES"


is no problem but you need to explain further how this part fits:

Plus if cell B33="ASA123456","YES","YES"


Unless it's a separate test:

=IF(OR(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0))={" ASA","GIG"}),"NO",IF('Data
Entry'!B33="ASA12346","YES","YES"))

Biff

"dbl" wrote in message
...
Hi I am using the following formula in sheet Data Entry cell B14
=IF(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0),1)="AS A","NO","YES")
which works fine. But I need to add more to it as follows:

If the above also ="GIG", "NO","YES"
Plus if cell B33="ASA123456","YES","YES"

Cell B14 & B33 are on a sheet called Data Entry all the other info comes
from Sheet1

How do I add the above into my formula?

Bob





  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try reversing the conditions:

=IF('Data
Entry'!B33="ASA12346","YES",IF(OR(INDEX(Sheet1!C:C ,MATCH(B7,Sheet1!A:A,0))={"ASA","GIG"}),"NO","YES" ))

Biff

"dbl" wrote in message
...
Biff there is one policy number (ASA123456) which is different from the
rest

ASA is "NO" apart from the above which is "YES" so I cannot in this case
use the ASA part of the policy number.

The formula you have sent works in all scenarios apart from returning "NO"
for the above policy which should be "YES".

Is this because it picks up the ASA part in the formula and is then not
over ridden by the last part? I also take it that the last "YES" is the
answer if it finds none of the above? which is how it should work.

Thanks for your help.

Bob

"Biff" wrote in message
...
Hi!

Adding this part:

If the above also ="GIG", "NO","YES"


is no problem but you need to explain further how this part fits:

Plus if cell B33="ASA123456","YES","YES"


Unless it's a separate test:

=IF(OR(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0))={" ASA","GIG"}),"NO",IF('Data
Entry'!B33="ASA12346","YES","YES"))

Biff

"dbl" wrote in message
...
Hi I am using the following formula in sheet Data Entry cell B14
=IF(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0),1)="AS A","NO","YES")
which works fine. But I need to add more to it as follows:

If the above also ="GIG", "NO","YES"
Plus if cell B33="ASA123456","YES","YES"

Cell B14 & B33 are on a sheet called Data Entry all the other info comes
from Sheet1

How do I add the above into my formula?

Bob







  #5   Report Post  
dbl
 
Posts: n/a
Default

Thanks Biff that works fine.

Regards Bob
"Biff" wrote in message
...
Hi!

Try reversing the conditions:

=IF('Data
Entry'!B33="ASA12346","YES",IF(OR(INDEX(Sheet1!C:C ,MATCH(B7,Sheet1!A:A,0))={"ASA","GIG"}),"NO","YES" ))

Biff

"dbl" wrote in message
...
Biff there is one policy number (ASA123456) which is different from the
rest

ASA is "NO" apart from the above which is "YES" so I cannot in this case
use the ASA part of the policy number.

The formula you have sent works in all scenarios apart from returning
"NO" for the above policy which should be "YES".

Is this because it picks up the ASA part in the formula and is then not
over ridden by the last part? I also take it that the last "YES" is the
answer if it finds none of the above? which is how it should work.

Thanks for your help.

Bob

"Biff" wrote in message
...
Hi!

Adding this part:

If the above also ="GIG", "NO","YES"

is no problem but you need to explain further how this part fits:

Plus if cell B33="ASA123456","YES","YES"

Unless it's a separate test:

=IF(OR(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0))={" ASA","GIG"}),"NO",IF('Data
Entry'!B33="ASA12346","YES","YES"))

Biff

"dbl" wrote in message
...
Hi I am using the following formula in sheet Data Entry cell B14
=IF(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0),1)="AS A","NO","YES")
which works fine. But I need to add more to it as follows:

If the above also ="GIG", "NO","YES"
Plus if cell B33="ASA123456","YES","YES"

Cell B14 & B33 are on a sheet called Data Entry all the other info
comes from Sheet1

How do I add the above into my formula?

Bob











  #6   Report Post  
dbl
 
Posts: n/a
Default

Biff can you help sort this one out, I need to join the 2 formulas together


=IF(B39="ASA123456",INDEX(Sheet1!G:G,MATCH(B7,Shee t1!A:A,0))))

If the policy number =ASA123456 then return the value in G:G other wise
return 0 this works only if the policy number is True other wise it returns
false. If its false I need it to perform the following
which gives me the policy excess from G:G or H:H this part works fine.

=IF(INDEX(Sheet1!G:G,MATCH(B7,Sheet1!A:A,0),1)=0,I NDEX(Sheet1!H:H,MATCH(B7,Sheet1!A:A,0),1),INDEX(Sh eet1!G:G,MATCH(B7,Sheet1!A:A,0),1))

How do I bring the two together? I have spent hours trying but have made no
progress.

Thanks Bob


"dbl" wrote in message
...
Thanks Biff that works fine.

Regards Bob
"Biff" wrote in message
...
Hi!

Try reversing the conditions:

=IF('Data
Entry'!B33="ASA12346","YES",IF(OR(INDEX(Sheet1!C:C ,MATCH(B7,Sheet1!A:A,0))={"ASA","GIG"}),"NO","YES" ))

Biff

"dbl" wrote in message
...
Biff there is one policy number (ASA123456) which is different from the
rest

ASA is "NO" apart from the above which is "YES" so I cannot in this case
use the ASA part of the policy number.

The formula you have sent works in all scenarios apart from returning
"NO" for the above policy which should be "YES".

Is this because it picks up the ASA part in the formula and is then not
over ridden by the last part? I also take it that the last "YES" is the
answer if it finds none of the above? which is how it should work.

Thanks for your help.

Bob

"Biff" wrote in message
...
Hi!

Adding this part:

If the above also ="GIG", "NO","YES"

is no problem but you need to explain further how this part fits:

Plus if cell B33="ASA123456","YES","YES"

Unless it's a separate test:

=IF(OR(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0))={" ASA","GIG"}),"NO",IF('Data
Entry'!B33="ASA12346","YES","YES"))

Biff

"dbl" wrote in message
...
Hi I am using the following formula in sheet Data Entry cell B14
=IF(INDEX(Sheet1!C:C,MATCH(B7,Sheet1!A:A,0),1)="AS A","NO","YES")
which works fine. But I need to add more to it as follows:

If the above also ="GIG", "NO","YES"
Plus if cell B33="ASA123456","YES","YES"

Cell B14 & B33 are on a sheet called Data Entry all the other info
comes from Sheet1

How do I add the above into my formula?

Bob











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
Formatting result of Index function ExcelFred Excel Worksheet Functions 5 July 26th 05 01:34 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Naming column in Index Function mlkpied Excel Worksheet Functions 3 December 7th 04 12:20 AM
Variable values in Index function mlkpied Excel Worksheet Functions 6 December 6th 04 11:38 PM


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