LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.misc
Ragdyer
 
Posts: n/a
Default Is there a limit to number of successive IF-THEN statements?

On second thought, I see that I've made the formula unnecessarily long by
inserting an unneeded trap using the Match function.

Since the lookup data in Column E on your main sheet will be inserted by a
dropdown list, there's really no need to check for it's existence in the
datalist.

Also, I referenced the wrong cell (E5) in the formula when I mentioned
starting in F1.

So, try this formula instead:

=IF(E1<"",VLOOKUP(E1,Lists!$C$1:$D$12,2,0),"")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"RagDyeR" wrote in message
...
Just make the "deliverables" and "deadlines" into a 2 column datalist, and
then access that list using a Vlookup formula like Niek suggested.

Say D1 to D12 on the Sheet "Lists" you have your deadlines.
In C1 to C12 enter your corresponding deliverables.

That gives you a datalist of C1 to D12.

Say your dropdown list is in E1 to E25 on your Main sheet.
Enter this formula in F1:

=IF(E5<"",IF(ISNA(MATCH(E5,Lists!$C$1:$C$12,0))," NoMatch",VLOOKUP(E5,Lists!
$C$1:$D$12,2,0)),"")

And copy down.


--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"bufossil" wrote in message
...
Hi Niek:

I have read the online help, and I guess I don't see how VLOOKUP() can
help
me. I have 12 possible values for deliverables in one column, each of
which
have their own (different) deadlines. If someone chooses a deliverable
from
a drop-down list in column E, then I want the deadline to automatically
appear in column F. I have the deadlines listed in a column on a tab
named
Lists. Does that make sense? So if someone selects "User Guide" from the
dropdown list in cell E5, then I want the deadline date [that resides in
cell
D4 on the Lists tab] to appear in cell F5.

The online help for VLOOKUP isn't very clear, but it doesn't look like it
can do what I would like for it to do. I will still need Excel to respond
to
a succession of 12 possible values in E5, and then fetch the respective
value
from a column on the Lists tab. I am misunderstanding something?

Thanks Niek!

"Niek Otten" wrote:

There is a limit of 7 nested IFs.
But it would be far better and easier to read if you used the VLOOKUP()
function.
Look in HELP for details, post again in this thread if you still have
problems.

--
Kind regards,

Niek Otten

"bufossil" wrote in message
...
I am listing a number of deliverables, and want the deadlines for those
deliverables to automatically appear in the next column (I have the
deadlines
on a tab named "Lists"). Unless I am misunderstanding something, there

is
a
limit of 7 successive IF-THEN statements you can use. Here is my

IF-THEN
formula:

=IF(E4="User
Guide",'Lists'!D4,IF(E4="Installation",'Lists'!D5, IF(E4="HW
Upgrade",'Lists'!D3,IF(E4="Maintenance",'Lists'!D6 ,IF(E4="RAS
Trouble",'Lists'!D3,IF(E4="Online Help",'Lists'!D2,IF(E4="Site
Prep",'Lists'!D7,IF(E4="Inventry Sheet",'Lists'!D10,IF(E4="SW
Upgrade",'Lists'!D9,IF(E4="Release Notes","",IF(E4="Many or
All","",IF(E4="Other or N/A","",""))))))))))))

Excel will not let me use the formula because it has issues with the
8th
IF-THEN statement. My guess is that Excel can only handle 7. Does

anyone
know the limit you can use? I have 12 different values that have
different
deadlines. Thanks!







 
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Master invoice number Christopher M. Excel Worksheet Functions 0 July 24th 05 04:26 PM
How do I increase the limit on the number of import rows in Excel Aleck Excel Discussion (Misc queries) 2 March 18th 05 07:53 PM
Is there a limit to the number of worksheets in an excel file? NIRVL Excel Discussion (Misc queries) 1 March 16th 05 03:02 PM
Nested IF limit or Open parentheses limit Fred Excel Discussion (Misc queries) 5 December 23rd 04 03:34 PM


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