#1   Report Post  
Don
 
Posts: n/a
Default Forumla

Here is my question:
How do I write a forumla for (-) a number in a cell?
It should look somthing like this: If(P10="-",-N10,N10)

How do i get this to work?

Thank you.
Don
  #2   Report Post  
FSt1
 
Posts: n/a
Default

hi,
Not entirely sure what you are asking but try this
note:assuming that formula will be in N10 otherwize it will not work.
formulas return values, they cannot perform actions.

=IF(P10<0,P10,P10*-1)

IF this is not what your are after, post back with more info.

Regards
FSt1

"Don" wrote:

Here is my question:
How do I write a forumla for (-) a number in a cell?
It should look somthing like this: If(P10="-",-N10,N10)

How do i get this to work?

Thank you.
Don

  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

Don wrote...
Here is my question:
How do I write a forumla for (-) a number in a cell?
It should look somthing like this: If(P10="-",-N10,N10)

How do i get this to work?


Unclear. By "for (-) a number in a cell" do you mean changing the sign
of a number in that cell? If so, you can't do this with formulas. You'd
need VBA to write Change and Calculate event handlers to change the
sign of the number in cell N10 in place when P10 evaluates equal to
"-".

If you mean something else, what do you mean?

  #4   Report Post  
Don
 
Posts: n/a
Default

Sorry if in not clear let me try this again.
Where the negative sign is:

5 -
6 -
7 -
8 -

After the formula it should look like this : If(P10="-",-N10,N10)
-5
-6
-7
-8
in the cell. Here is the forumla i was trying:

"FSt1" wrote:

hi,
Not entirely sure what you are asking but try this
note:assuming that formula will be in N10 otherwize it will not work.
formulas return values, they cannot perform actions.

=IF(P10<0,P10,P10*-1)

IF this is not what your are after, post back with more info.

Regards
FSt1

"Don" wrote:

Here is my question:
How do I write a forumla for (-) a number in a cell?
It should look somthing like this: If(P10="-",-N10,N10)

How do i get this to work?

Thank you.
Don

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
test forumla rather than result Ruthki Excel Worksheet Functions 2 July 6th 05 11:15 PM
Forumla calculation Shelly Excel Discussion (Misc queries) 2 March 31st 05 12:57 AM
Forumla to calculate a percentage julie regan Excel Discussion (Misc queries) 0 January 20th 05 08:53 PM
Excel Forumla to seach and return all values [email protected] Excel Worksheet Functions 7 December 20th 04 05:54 PM
Excat Forumla HELP Siddiqui Excel Worksheet Functions 2 November 9th 04 10:10 PM


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