Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
timhiley
 
Posts: n/a
Default IF command, limit to number of entries?


I am designing a spreadsheet to monitor progress through levels in the
English National curriculum. Children are given a level at the end of
the year from w, 1c,1b,1a,2c,2b,2a etc up to 5a.

I am trying to convert the text eg "2a" into a value ie 7. I have
managed to do this using the IF function however when i get up to a
certain number of if statements it seems to stop excepting any more. Is
there a limit and if so is there a way around it.

The formula I am using is as shown below.

=IF(S5="w",1,(IF(S5="1c",2,(IF(S5="1b",3,(IF(S5="1 a",4,(IF(S5="2c",5,(IF(S5="2b",6,(IF(S5="2a",7,(IF (S5="3c",8,"error")))))))))))))))

I want the formula to continue from where it say "error" to
(if(s5="3b",9,(if(S5="3a",10,(if(s5="4c",11,(..... ....... etc, etc

Where it says "error" at the end the sequence should continue all the
way to "5a"

I am new to using excel in this way and any help would be much
appreciated.


--
timhiley
------------------------------------------------------------------------
timhiley's Profile: http://www.excelforum.com/member.php...o&userid=29534
View this thread: http://www.excelforum.com/showthread...hreadid=492326

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default IF command, limit to number of entries?

One approach is to use a VLOOKUP table. See:

http://www.contextures.com/xlFunctions02.html


--
Gary''s Student


"timhiley" wrote:


I am designing a spreadsheet to monitor progress through levels in the
English National curriculum. Children are given a level at the end of
the year from w, 1c,1b,1a,2c,2b,2a etc up to 5a.

I am trying to convert the text eg "2a" into a value ie 7. I have
managed to do this using the IF function however when i get up to a
certain number of if statements it seems to stop excepting any more. Is
there a limit and if so is there a way around it.

The formula I am using is as shown below.

=IF(S5="w",1,(IF(S5="1c",2,(IF(S5="1b",3,(IF(S5="1 a",4,(IF(S5="2c",5,(IF(S5="2b",6,(IF(S5="2a",7,(IF (S5="3c",8,"error")))))))))))))))

I want the formula to continue from where it say "error" to
(if(s5="3b",9,(if(S5="3a",10,(if(s5="4c",11,(..... ....... etc, etc

Where it says "error" at the end the sequence should continue all the
way to "5a"

I am new to using excel in this way and any help would be much
appreciated.


--
timhiley
------------------------------------------------------------------------
timhiley's Profile: http://www.excelforum.com/member.php...o&userid=29534
View this thread: http://www.excelforum.com/showthread...hreadid=492326


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
timhiley
 
Posts: n/a
Default IF command, limit to number of entries?


thanks very much, this solves my problem!


--
timhiley
------------------------------------------------------------------------
timhiley's Profile: http://www.excelforum.com/member.php...o&userid=29534
View this thread: http://www.excelforum.com/showthread...hreadid=492326

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
number format Ivan Excel Discussion (Misc queries) 2 October 14th 05 02:08 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 1 October 8th 05 07:33 AM
Creating a certain number of entries based on a number in a cell PPV Excel Worksheet Functions 4 June 16th 05 10:25 PM
Count Number of Characters in a cell? AHJuncti Excel Discussion (Misc queries) 2 June 16th 05 07:39 PM
Need number of Saturdays and number of Sundays between 2 dates Class316 Excel Worksheet Functions 1 June 10th 05 02:47 AM


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