Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using IF statement to make conditional formulas?

How do I type it in Excel without using macros to achieve the following
function?

If A1<5, then B1 = A1*(A1-5)
If A1=5, then B1 = A1*(A1+5)

Any help is much appreciated!! :)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using IF statement to make conditional formulas?

Hi,

type this in cell B1:

=IF(A1<5,A1*(A1-5),A1*(A1+5))

Regs,

Dominic

Natalie wrote:
How do I type it in Excel without using macros to achieve the following
function?

If A1<5, then B1 = A1*(A1-5)
If A1=5, then B1 = A1*(A1+5)

Any help is much appreciated!! :)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using IF statement to make conditional formulas?

Natalie,

Select Cell B1 then type =IF(A1<5,A1*(A1-5),A1*(A1+5)).

This should work.






Jon L.

*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Using IF statement to make conditional formulas?

Thank you!! It works :)

J. Leadbeater wrote:
Natalie,

Select Cell B1 then type =IF(A1<5,A1*(A1-5),A1*(A1+5)).

This should work.






Jon L.

*** Sent via Developersdex http://www.developersdex.com ***


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
How to make cell inaccessable using if statement? kashvii Excel Discussion (Misc queries) 2 February 3rd 09 05:45 PM
if then statement... can't make it work:S sed Excel Discussion (Misc queries) 6 October 15th 08 02:07 PM
How to make a Let statement in Excel? Blain M Excel Worksheet Functions 2 September 14th 07 05:42 PM
How can you make an 'If statement' with checkboxes? Lady_snap Excel Discussion (Misc queries) 2 February 16th 07 06:23 PM
How can i make this work within an IF statement: (41<=Cell<=46) velopoav New Users to Excel 3 April 11th 05 02:15 AM


All times are GMT +1. The time now is 02:39 AM.

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

About Us

"It's about Microsoft Excel"