Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hme hme is offline
external usenet poster
 
Posts: 1
Default IF in formula


Hi

How can I use IF formula when I mean as below:

IF Cell(1,1)=1,2,3 then

Do something

End if


--
hme
------------------------------------------------------------------------
hme's Profile: http://www.excelforum.com/member.php...o&userid=15930
View this thread: http://www.excelforum.com/showthread...hreadid=538025

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default IF in formula

In VBA:
Select Case Cells(1, 1).Value
Case 1, 2, 3
MsgBox "1, 2 or 3"
Case Else
MsgBox "Something else"
End Select

HTH
--
AP

"Don Guillett" a écrit dans le message de news:
...
try
If Cells(1, 1) 0 And Cells(1, 1) < 4 Then MsgBox "Hi"

--
Don Guillett
SalesAid Software

"hme" wrote in message
...

Hi

How can I use IF formula when I mean as below:

IF Cell(1,1)=1,2,3 then

Do something

End if


--
hme
------------------------------------------------------------------------
hme's Profile:
http://www.excelforum.com/member.php...o&userid=15930
View this thread:
http://www.excelforum.com/showthread...hreadid=538025





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default IF in formula

If cells(1,1) = 1 or cells(1,1) = 2 or cells(1,1) = 3 then


end if

--
Regards,
Tom Ogilvy


"hme" wrote:


Hi

How can I use IF formula when I mean as below:

IF Cell(1,1)=1,2,3 then

Do something

End if


--
hme
------------------------------------------------------------------------
hme's Profile: http://www.excelforum.com/member.php...o&userid=15930
View this thread: http://www.excelforum.com/showthread...hreadid=538025


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
Regression Leverage Formula (Jerry W. Lewis or Mike Middleton)already have DFITS formula PJ[_3_] Excel Worksheet Functions 2 June 2nd 10 03:45 PM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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