Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Combining AND, MID, and OR

I have a formula that works fine, written as:

=IF(AND(MAX(Q10:R10)=1,MID(A10,1,3)="ARU"),2,MAX(Q 10:R10))

My problem, though, is that I want to check cell A10 for other
possibilities besides"ARU". Let's say I also want to check for "CON"
and "TUF". How do I add these other possibilites to the formula? The
OR function has thrown me for a loop!

Thanks, Brendan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Combining AND, MID, and OR

Here's Two ways:

=IF(AND(MAX(Q10:R10)=1,OR(MID(A10,1,3)="ARU",MID(A 10,1,3)="CON",MID(A10,1,3)="TUF")),2,MAX(Q10:R10))

Or even shorter (less long):

=IF(AND(MAX(Q10:R10)=1,OR(MID(A10,1,3)={"ARU","CON ","TUF"})),2,MAX(Q10:R10))

HTH,
Paul

--

"bquirk" wrote in message
...
I have a formula that works fine, written as:

=IF(AND(MAX(Q10:R10)=1,MID(A10,1,3)="ARU"),2,MAX(Q 10:R10))

My problem, though, is that I want to check cell A10 for other
possibilities besides"ARU". Let's say I also want to check for "CON"
and "TUF". How do I add these other possibilites to the formula? The
OR function has thrown me for a loop!

Thanks, Brendan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Combining AND, MID, and OR

Perhaps this:

=IF((MAX(Q10:R10)*OR(LEFT(A10,3)={"ARU","CON","TUF "}))=1,2,MAX(Q10:R10))

Is that something you can work with?

***********
Regards,
Ron

XL2003, WinXP


"bquirk" wrote:

I have a formula that works fine, written as:

=IF(AND(MAX(Q10:R10)=1,MID(A10,1,3)="ARU"),2,MAX(Q 10:R10))

My problem, though, is that I want to check cell A10 for other
possibilities besides"ARU". Let's say I also want to check for "CON"
and "TUF". How do I add these other possibilites to the formula? The
OR function has thrown me for a loop!

Thanks, Brendan

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
Combining second row to first row LisaJ27 Excel Discussion (Misc queries) 2 February 26th 09 03:48 PM
Combining Tamsin Charts and Charting in Excel 0 March 5th 07 03:14 PM
Combining look up and last? Sarah Excel Discussion (Misc queries) 4 January 9th 07 10:01 AM
Combining Sum, IF and AND Kenton_SJ Excel Discussion (Misc queries) 1 August 3rd 05 11:30 PM
combining IF and AND Dahlman Excel Discussion (Misc queries) 5 May 12th 05 08:21 PM


All times are GMT +1. The time now is 10:20 PM.

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"