#1   Report Post  
B LO
 
Posts: n/a
Default Create a formula

I needed to know how or what easy way to create formulas. I wanted to to
create a cell that shows if I enter a number less than three it will show as
negitive and of coruse if it three or higher it stays in the positve?
--
Looking for help.
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

This formula will display the results you want of a cell *other* then the
cell that contains this formula:

=A1*(-(A1<3)+(A1=3))

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"B LO" wrote in message
...
I needed to know how or what easy way to create formulas. I wanted to to
create a cell that shows if I enter a number less than three it will show

as
negitive and of coruse if it three or higher it stays in the positve?
--
Looking for help.


  #3   Report Post  
Dan
 
Posts: n/a
Default

Here is a simple function. Need to add this in a module in VBA.

Function test(ByVal intVal As Integer) As Integer
If intVal < 0 Then
test = intVal
ElseIf intVal = 0 And intVal < 3 Then
test = intVal * -1
Else
test = intVal
End If
End Function

"B LO" wrote:

I needed to know how or what easy way to create formulas. I wanted to to
create a cell that shows if I enter a number less than three it will show as
negitive and of coruse if it three or higher it stays in the positve?
--
Looking for help.

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
Create Formula for calculating Little League Age... Brent Excel Worksheet Functions 1 September 21st 05 01:19 AM
how do I create a if-then formula? karen Excel Worksheet Functions 4 May 4th 05 12:08 AM
How to create specific formula STS Excel Worksheet Functions 4 May 2nd 05 01:44 AM
How do I create a formula that would allow me to subtract from a d Justlearning New Users to Excel 5 January 27th 05 09:47 PM
How do I create a formula in Excel that will countif or sumif bef. bkclark Excel Worksheet Functions 4 November 10th 04 05:30 PM


All times are GMT +1. The time now is 07:21 PM.

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"