Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default replacement for IF function?


I have 22 options. Instead of using the IF function what can I use or
can I use the IF function w/ another function? This is what I have.

Cells A1, A2, A3 and so on

This is what I started w/ the IF function:

=IF(A1=0,22,IF(A2=0,21,IF(A3=0,20 and so on

Thanks,


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=539700

  #2   Report Post  
Posted to microsoft.public.excel.misc
damorrison
 
Posts: n/a
Default replacement for IF function?

Are you trying to find a value that is in a range?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default replacement for IF function?


Debra Dalgleish's website should get you pointed in the right direction.
See the section on the VLOOKUP function he

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

Regards,
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=539700

  #4   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default replacement for IF function?


A1, A2, A3 and so on is the total money from other cells, so if A1 = 0
then I want the cell to show 22, which is for the # of days left in the
month, if there is a value other then 0, go on to A2 and if A2=0 show 21
and so on.

Basically if
A1 = 0 (result 22) - if not then test A2
A2 = 0 (result 21) - if not then test A3
A3 = 0 (result 20) and so, testing each one until it finds the cell
that equals 0


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=539700

  #5   Report Post  
Posted to microsoft.public.excel.misc
Dana DeLouis
 
Posts: n/a
Default replacement for IF function?

Hi. Given your example, if Rng refers to A1:A23, then perhaps this array
formula:

=23-MIN(IF(Rng=0,ROW(Rng)))

--
HTH. :)
Dana DeLouis
Windows XP, Office 2003


"fastballfreddy"
<fastballfreddy.27gola_1147045801.1867@excelforu m-nospam.com wrote in
message news:fastballfreddy.27gola_1147045801.1867@excelfo rum-nospam.com...

A1, A2, A3 and so on is the total money from other cells, so if A1 = 0
then I want the cell to show 22, which is for the # of days left in the
month, if there is a value other then 0, go on to A2 and if A2=0 show 21
and so on.

Basically if
A1 = 0 (result 22) - if not then test A2
A2 = 0 (result 21) - if not then test A3
A3 = 0 (result 20) and so, testing each one until it finds the cell
that equals 0


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile:
http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=539700





  #6   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default replacement for IF function?


...or just

=23-MATCH(0,A1:A23,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=539700

  #7   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default replacement for IF function?


I just wanted to thank everybody for their replies. I ended up using
the vlookup.


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=539700

  #8   Report Post  
Posted to microsoft.public.excel.misc
Dana DeLouis
 
Posts: n/a
Default replacement for IF function?

=23-MATCH(0,A1:A23,0)

I like it! Thanks. :)
Another advantage your equation has is that it returns an error (#N/A) if
there are no zero's.
Thanks. :)
--
Dana DeLouis

"daddylonglegs"
wrote in message
news:daddylonglegs.27gqwm_1147048801.1232@excelfor um-nospam.com...

..or just

=23-MATCH(0,A1:A23,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=539700



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
IF function to blank without getting #value in sum function Brad Stevenson Excel Worksheet Functions 5 May 26th 05 11:26 AM
Date & Time mully New Users to Excel 4 May 23rd 05 12:56 PM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 04:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 03:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 11:49 AM


All times are GMT +1. The time now is 06:31 AM.

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"