Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
samonly
 
Posts: n/a
Default Nested if problem


I've got stuff in a sheet that looks like this (it is about words and
their letters' probabilities of co-occurrence)

+be bee eef efyfy# 356 26 11 6 103 all in different columns. I want
to have a column which says "efy" and another "6". The "6" bit is
easy to achieve with "min" and for the "efy bit this formula lets me
work out which letter triplet has the minimum frequency within each
word:

=IF(firstno=MIN(numbers),firsttriplet,IF(secondno= MIN(numbers),secondtriplet,IF(thirdno=MIN(numbers) ,thirdtriplet,IF(fourthno=MIN(numbers),fourthtripl et,IF(fifthno=MIN(numbers),fifthtriplet,"")))))

deliberately not absolute cell references so I can copy the formula
down the sheet. But it is limited by the 7 nested if thing to words
which are below 7 letters I think. I have tried calling the function a
name and getting round the problem that way but it just returns the
!#value error when I try to use it (don't know why).

I can't use any of the lookup or index type functions because the
numbers are not in numerical order. (I tried pasting the lot
(transposed) into a new worksheet and it only works for some values and
not others).

I have never used vba, not sure how even to start. So at the moment
I'm going to have to look do all the longer words by hand. Any advice
would be gratefully received.

A confused postgrad


--
samonly
------------------------------------------------------------------------
samonly's Profile: http://www.excelforum.com/member.php...o&userid=32439
View this thread: http://www.excelforum.com/showthread...hreadid=522140

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Nested if problem

Try using FALSE in the range_lookup argument of VLOOKUP (see help for
details). That way the order in the lookup column doesn't matter.

In article ,
samonly wrote:

I can't use any of the lookup or index type functions because the
numbers are not in numerical order. (I tried pasting the lot
(transposed) into a new worksheet and it only works for some values and
not others).

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
Problem with nested IF_OR statement DOOGIE Excel Worksheet Functions 7 June 24th 05 03:27 AM
Copy an Drag cell Formula Problem Nat Excel Discussion (Misc queries) 1 June 20th 05 03:24 PM
problem office assistant R.VENKATARAMAN Excel Discussion (Misc queries) 0 June 15th 05 06:22 AM
Problem with nested subtotals, placing secondary subtotals BELOW . Dawn Cameron Excel Discussion (Misc queries) 1 June 3rd 05 10:13 PM
€śUse of more then 7 nested if statement€ť Faisal Yameen Excel Worksheet Functions 2 January 12th 05 04:20 PM


All times are GMT +1. The time now is 09:52 PM.

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

About Us

"It's about Microsoft Excel"