Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Nested if(and(or)) function?

Yes, that seems to work. Similar to my previous array-entered formula (which
was one character shorter)...

=CHOOSE(MAX(COUNTIF(A1:D1,A1:D1)),"SINGLE","DOUBLE ","TRIPLE","QUAD")

I wonder if anyone has measured the efficiency of the CHOOSE function as
compared to the INDEX function?

--
Rick (MVP - Excel)


"muddan madhu" wrote in message
...
sorry for that

may be this one

=INDEX({"single";"double";"triple";"quad"},MAX(COU NTIF(A1:D1,A1:D1)))

use ctrl + shift + enter



On Dec 8, 10:45 am, "Rick Rothstein"
wrote:
I don't think that formula works if the repeated cell is not the first
cell.
Put these values in columns A thru D and try it out...

A B C D
1 2 3 3

--
Rick (MVP - Excel)

"muddan madhu" wrote in message

...

try this


=INDEX({"single";"double";"triple";"quad"},COUNTIF (A1:D1,A1:D1))


use ctrl + shift + enter


On Dec 8, 6:44 am, budward wrote:
I need a formula that does the following. Is this possible?(complete
noob!)


If no numbers match "SINGLE"..If two numbers match "DOUBLE"…If three
numbers match "TRIPLE"… All four numbers match "QUAD"


7 4 2 7 DOUBLE
1 9 6 7 SINGLE
2 3 0 1 SINGLE
8 7 8 2 DOUBLE
3 6 5 9 SINGLE
2 7 7 7 TRIPLE
9 9 7 9 TRIPLE
3 4 0 4 DOUBLE
1 1 7 6 DOUBLE
7 9 5 3 SINGLE
1 1 1 1 QUAD


--
budward


  #2   Report Post  
Junior Member
 
Posts: 2
Default

Thanks for all of the replies.
Will try the different ways out this weekend.
Bud


Quote:
Originally Posted by Rick Rothstein View Post
Yes, that seems to work. Similar to my previous array-entered formula (which
was one character shorter)...

=CHOOSE(MAX(COUNTIF(A1:D1,A1:D1)),"SINGLE","DOUBLE ","TRIPLE","QUAD")

I wonder if anyone has measured the efficiency of the CHOOSE function as
compared to the INDEX function?

--
Rick (MVP - Excel)

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
Nested IF Function Dave F Excel Discussion (Misc queries) 0 November 30th 06 03:56 PM
can you nested sum and round function within if function? anna Excel Worksheet Functions 4 May 27th 06 06:06 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Nested "If" Function Ms. P. Excel Worksheet Functions 8 August 19th 05 07:31 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


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