Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default conditional statement problem

hello,

i hav a prob... how can i make a formula that states.. if A1=2 then B1+2
else B1+3(this is on cell C1) and so on and so fort at C row.. and what if A1
is blank then A2 has a value and i wanted it to automatically formulated at
C1.

hope you help me guyz...

rynner from philippines
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default conditional statement problem

One guess, maybe you meant
In C1: =IF(A1=2,B1+2,B1+1)
then C1 is copied down

The above translates your specs:
if A1=2 then B1+2 else B1+3(this is in cell C1)

--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"RYNNER" wrote:
i hav a prob... how can i make a formula that states.. if A1=2 then B1+2
else B1+3(this is on cell C1) and so on and so forth at C row.. and what if A1
is blank then A2 has a value and i wanted it to automatically formulated at
C1.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default conditional statement problem

Hi,

Try

=B1+IF(A1=2,2,3)

or an even shorter version

=2+B1+(A1<2)


And copy it down as far as needed.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"RYNNER" wrote:

hello,

i hav a prob... how can i make a formula that states.. if A1=2 then B1+2
else B1+3(this is on cell C1) and so on and so fort at C row.. and what if A1
is blank then A2 has a value and i wanted it to automatically formulated at
C1.

hope you help me guyz...

rynner from philippines

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 Statement problem MarkFrost39 Excel Worksheet Functions 3 September 6th 07 07:54 PM
If statement problem Scott@CW Excel Discussion (Misc queries) 1 April 26th 07 03:40 PM
Problem with IF statement Connie Martin Excel Worksheet Functions 11 November 24th 06 09:29 PM
Problem with IF statement Jonibenj Excel Discussion (Misc queries) 5 August 18th 05 12:06 AM
IF statement problem simon Excel Worksheet Functions 1 December 30th 04 10:59 AM


All times are GMT +1. The time now is 11:51 PM.

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"