#1   Report Post  
sfs
 
Posts: n/a
Default Excel Functions

I have a group of mutually exclusive If statements that I want to exercise in
a cell. Specifically, if the year is 2005 I want to return one value, if the
year is 2006, I want to return another, etc. Can't see how to do this simply
without creating a giant nesting of If statements. Anyone have suggestions?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=(YEAR(TODAY())-2004)*some_value

as a starting guess, a bit light on detail

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sfs" wrote in message
...
I have a group of mutually exclusive If statements that I want to exercise

in
a cell. Specifically, if the year is 2005 I want to return one value, if

the
year is 2006, I want to return another, etc. Can't see how to do this

simply
without creating a giant nesting of If statements. Anyone have

suggestions?


  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Without knowing more about the conditions and results, I'd suggest using
VLOOKUP from a table of corresponding values.


J K
1 YEAR VALUE
2 2005 value1
3 2006 value2
....
20 2024 value20



=VLOOKUP(YEAR(A1), J:K, 2, FALSE)



In article ,
sfs wrote:

I have a group of mutually exclusive If statements that I want to exercise in
a cell. Specifically, if the year is 2005 I want to return one value, if the
year is 2006, I want to return another, etc. Can't see how to do this simply
without creating a giant nesting of If statements. Anyone have suggestions?

  #4   Report Post  
Morrigan
 
Posts: n/a
Default


VLOOKUP() is probably a better choice rather than using IF().


sfs Wrote:
I have a group of mutually exclusive If statements that I want to
exercise in
a cell. Specifically, if the year is 2005 I want to return one value,
if the
year is 2006, I want to return another, etc. Can't see how to do this
simply
without creating a giant nesting of If statements. Anyone have
suggestions?



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=391032

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
Excel Range Value issue (Excel 97 Vs Excel 2003) Keeno Excel Discussion (Misc queries) 2 June 13th 05 02:01 PM
Excel Statistical Functions and Routines David A. Heiser Excel Worksheet Functions 0 June 3rd 05 05:27 PM
Excel Statistical Functions and Routines David A. Heiser Excel Worksheet Functions 1 June 2nd 05 03:52 AM
ENTER EXCEL FORMULA WITH MORE THAN 7 NESTED FUNCTIONS Linda Bolton Excel Worksheet Functions 2 January 14th 05 11:58 AM
Excel Lookup Functions Paul Adams Excel Worksheet Functions 1 November 10th 04 02:40 PM


All times are GMT +1. The time now is 09:44 AM.

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"