A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Is this formula correct?



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2004, 07:20 PM
Dave R.
external usenet poster
 
Posts: n/a
Default Is this formula correct?

Is what formula correct? Did you make a stab at it?

=CHOOSE(A1/4,1,2,3)

If you don't want any message if not 4,8,12, try

=IF(ISNUMBER(CHOOSE(A1/4,1,2,3)),CHOOSE(A1/4,1,2,3),"")


"Julian" wrote in message
...
I'm working on an "IF" formula but can't seem to get it to work, here's

what I'm trying to calculate:
Cell A1 holds a number between 1 & 12.

If cell A1=4 I need cell A2 to show "1"
If cell A1=8 I need cell A2 to show "2"
If cell A1=12 I need cell A2 to show "3"

No other numbers should calculate an answer, just the 4, 8 & 12.
Suggestions ?
Thanks



  #2  
Old May 4th, 2004, 07:24 PM
DDM
external usenet poster
 
Posts: n/a
Default Is this formula correct?

Julian, here 'ya go: =IF(A1=4,1,IF(A1=8,2,IF(A1=12,3,""))).
--
DDM
"DDM's Microsoft Office Tips and Tricks"
www.ddmcomputing.com


"Julian" wrote in message
...
I'm working on an "IF" formula but can't seem to get it to work, here's

what I'm trying to calculate:
Cell A1 holds a number between 1 & 12.

If cell A1=4 I need cell A2 to show "1"
If cell A1=8 I need cell A2 to show "2"
If cell A1=12 I need cell A2 to show "3"

No other numbers should calculate an answer, just the 4, 8 & 12.
Suggestions ?
Thanks



  #3  
Old May 4th, 2004, 07:28 PM
Harlan Grove
external usenet poster
 
Posts: n/a
Default Is this formula correct?

"=?Utf-8?B?SnVsaWFu?=" wrote...
I'm working on an "IF" formula but can't seem to get it to work, here's what
I'm trying to calculate:
Cell A1 holds a number between 1 & 12.

If cell A1=4 I need cell A2 to show "1"
If cell A1=8 I need cell A2 to show "2"
If cell A1=12 I need cell A2 to show "3"

No other numbers should calculate an answer, just the 4, 8 & 12.
Suggestions ?


Simplest,

=IF(A1=4,1,IF(A1=8,2,IF(A1=12,3,"")))

More general,

=IF(SUMPRODUCT(COUNTIF(A1,{4,8,12})),MATCH(A1,{4,8 ,12}),"")

--
To top-post is human, to bottom-post and snip is sublime.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.