Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Too many IF functions

Hey guys,

I have an IF statement that surpasses the amount of allowed IF's (7).
I have looked around and everyone seems to say to do a Vlookup but I
don't think that is what I want. Can you help me out?

This is the code:
================================================== ======================
=IF(F3="0 to < 4 feet Ditch and No Barrier",4,IF(F4="Concrete Barrier
without to < 2 feet Ditch",3,IF(F5="Guide Rail without to < 4 feet
Ditch",3,IF(F6="= 4 feet to < 8 feet Ditch",3,IF(F7="Light Duty
Netting",3,IF(F8="Concrete Barrier with = 2 Ditch",2,IF(F9="Guide
Rail with = 4 feet Ditch",2,IF(F10="Light Duty Fence",2,IF(F11="Heavy
Duty Fence",1,IF(F12="Heavy Duty Netting",1,""))))))))))
================================================== ======================

Thanks,
Molly
My website: http://techmolly.com
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Too many IF functions

On Aug 27, 10:33*am, Molly wrote:
Hey guys,

I have an IF statement that surpasses the amount of allowed IF's (7).
I have looked around and everyone seems to say to do a Vlookup but I
don't think that is what I want. Can you help me out?

This is the code:
================================================== ======================
=IF(F3="0 to < 4 feet Ditch and No Barrier",4,IF(F4="Concrete Barrier
without to < 2 feet Ditch",3,IF(F5="Guide Rail without to < 4 feet
Ditch",3,IF(F6="= 4 feet to < 8 feet Ditch",3,IF(F7="Light Duty
Netting",3,IF(F8="Concrete Barrier with = 2 Ditch",2,IF(F9="Guide
Rail with = 4 feet Ditch",2,IF(F10="Light Duty Fence",2,IF(F11="Heavy
Duty Fence",1,IF(F12="Heavy Duty Netting",1,""))))))))))
================================================== ======================

Thanks,
Molly
My website:http://techmolly.com


Nevermind, I figured it out.

Thanks though :)
Molly
My website: http://techmolly.com
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Too many IF functions

You're really checking F3, F4, ..., F12 for different strings?

If all of these are mutually exclusive (a maximum of exactly one could happen),
then:


=IF(F3="0 to < 4 feet Ditch and No Barrier",4,0)
+IF(F4="Concrete Barrier without to < 2 feet Ditch",3,0)
+IF(F5="Guide Rail without to < 4 feet Ditch",3,0)
+IF(F6="= 4 feet to < 8 feet Ditch",3,0)
+IF(F7="Light Duty Netting",3,0)
+IF(F8="Concrete Barrier with = 2 Ditch",2,0)
+IF(F9="Guide Rail with = 4 feet Ditch",2,0)
+IF(F10="Light Duty Fence",2,0)
+IF(F11="Heavy Duty Fence",1,IF(F12="Heavy Duty Netting",1,0)

This will actually return a 0 if non of these are true.


Molly wrote:

Hey guys,

I have an IF statement that surpasses the amount of allowed IF's (7).
I have looked around and everyone seems to say to do a Vlookup but I
don't think that is what I want. Can you help me out?

This is the code:
================================================== ======================
=IF(F3="0 to < 4 feet Ditch and No Barrier",4,IF(F4="Concrete Barrier
without to < 2 feet Ditch",3,IF(F5="Guide Rail without to < 4 feet
Ditch",3,IF(F6="= 4 feet to < 8 feet Ditch",3,IF(F7="Light Duty
Netting",3,IF(F8="Concrete Barrier with = 2 Ditch",2,IF(F9="Guide
Rail with = 4 feet Ditch",2,IF(F10="Light Duty Fence",2,IF(F11="Heavy
Duty Fence",1,IF(F12="Heavy Duty Netting",1,""))))))))))
================================================== ======================

Thanks,
Molly
My website: http://techmolly.com


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Too many IF functions

Dave:

Thanks for showing me that. I figured it out with a VLookup but that
is very helpful for the future. Thank you very much for your response!

Molly
My website: http://techmolly.com
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
How to convert cell formula functions to code functions Adnan Excel Discussion (Misc queries) 1 October 1st 08 08:30 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Conversion from Spreadsheet Toolkit functions (ESSV....) to EssBase API functions sujay Excel Programming 0 June 5th 06 10:13 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


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