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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|