#1   Report Post  
JeremyH1982
 
Posts: n/a
Default IF Statement


I am trying to make a formula to make a number positive if it is
negative and negative if it is positive. There are only a few documents
i need to change; they are documents with a document code of 2 or 3 and
it is in column D; The numbers i want to change are in columns G,H,I, &
J;
This is what I had come up with:

=IF($D7=2, ($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), IF($D7=3,
($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), $D7="Null"))

I put it in Column D which I am not sure that it should be the column
to put it in.
If someone could please help me figure this problem out; it would be
greatly appreciated.

Thank You
Jeremy Himmelreich


--
JeremyH1982
------------------------------------------------------------------------
JeremyH1982's Profile: http://www.excelforum.com/member.php...o&userid=28194
View this thread: http://www.excelforum.com/showthread...hreadid=477282

  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default IF Statement

On Tue, 18 Oct 2005 14:22:39 -0500, JeremyH1982
wrote:


I am trying to make a formula to make a number positive if it is
negative and negative if it is positive. There are only a few documents
i need to change; they are documents with a document code of 2 or 3 and
it is in column D; The numbers i want to change are in columns G,H,I, &
J;
This is what I had come up with:

=IF($D7=2, ($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), IF($D7=3,
($G7=$G7*-1; $H7=$H7*-1; $I7=$I7*-1; $J7=$J7*-1), $D7="Null"))

I put it in Column D which I am not sure that it should be the column
to put it in.
If someone could please help me figure this problem out; it would be
greatly appreciated.

Thank You
Jeremy Himmelreich


Please see answer to your previous post; which you posted 37 min before this
post, and which was answered 10 minutes after this post.


--ron
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
Long IF Statement rmitchell87 Excel Discussion (Misc queries) 2 October 2nd 05 03:50 AM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


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