Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default I have a column of numbers, some negative, some positive

I have some calulations in my worksheet. They are done twice, if my
number is positive or negative.
I need to fill the cell next to my number with the calulation that
correspondes with the + or - of my number.


if A1 + if A1 -
A1 B1 C1 D1
-10 7 12

A2 B2 C2 D2
14 4 6
I need the 12 to appear in B1.

and the 4 to appear in B2.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default I have a column of numbers, some negative, some positive

In B1 enter =IF(A1<0,D1,C1)

Copy down.


Gord Dibben MS Excel MVP

On Wed, 18 Nov 2009 12:03:24 -0800 (PST), Skip wrote:

I have some calulations in my worksheet. They are done twice, if my
number is positive or negative.
I need to fill the cell next to my number with the calulation that
correspondes with the + or - of my number.


if A1 + if A1 -
A1 B1 C1 D1
-10 7 12

A2 B2 C2 D2
14 4 6
I need the 12 to appear in B1.

and the 4 to appear in B2.
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
Default I have a column of numbers, some negative, some positive

the formula in B1 would be this
=if(a1<0,d1,c1)
Copy it down as far as needed.

This would lump 0 values in A with the positive. To have 0 with the
negatives use
=if(a1<=0,d1,c1)

--
If this helps, please remember to click yes.


"Skip" wrote:

I have some calulations in my worksheet. They are done twice, if my
number is positive or negative.
I need to fill the cell next to my number with the calulation that
correspondes with the + or - of my number.


if A1 + if A1 -
A1 B1 C1 D1
-10 7 12

A2 B2 C2 D2
14 4 6
I need the 12 to appear in B1.

and the 4 to appear in B2.
Thanks
.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 29
Default I have a column of numbers, some negative, some positive

Thanks for you help.
Skip
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 do I convert a column of numbers from positive to negative? BJ Excel Discussion (Misc queries) 3 March 19th 08 09:38 PM
Excel, change column of negative numbers to positive numbers? Nita New Users to Excel 3 November 27th 07 04:54 AM
column of negative numbers into positive numbers ORLFREIGHTBOY Excel Worksheet Functions 2 March 1st 07 08:26 PM
Convert a column of numbers from positive to negative in Excel JRoseen Excel Discussion (Misc queries) 4 July 7th 06 07:18 PM
How do I change a column of 500 numbers from positive to negative JKB Excel Discussion (Misc queries) 2 September 28th 05 04:16 PM


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

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"