Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default making a # value positive or negative based on contents of another

How do I make the numerical value of column "a" postive or negative based on
the text value of column "b"

For example:

$126,513.00 c
$5,616,156.00 d
$132.00 d
$156.00 d
$55,444.00 c

When I upload the data all numbers come up positive. I would like it to
make it so the number comes up negative if column b contains a "c" and
positive if it contains a "d". I am willing to have to create a function in
row c and have the numbers in "a" move to column "c".

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default making a # value positive or negative based on contents of another

Put this formula in C1, then:

=IF(B1="c",-A1,A1)

and copy down (double-click the fill handle [the small black square in
the bottom right corner of the cursor] with C1 selected).

If you want to put the values back in column A, then highlight the
cells in C, click <copy then Edit | Paste Special | Values (check) |
OK then <Enter. This will have fixed the values, so that you can now
copy them over the original values in column A and delete column C.

Hope this helps.

Pete

On Oct 29, 7:00 pm, adam wrote:
How do I make the numerical value of column "a" postive or negative based on
the text value of column "b"

For example:

$126,513.00 c
$5,616,156.00 d
$132.00 d
$156.00 d
$55,444.00 c

When I upload the data all numbers come up positive. I would like it to
make it so the number comes up negative if column b contains a "c" and
positive if it contains a "d". I am willing to have to create a function in
row c and have the numbers in "a" move to column "c".



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default making a # value positive or negative based on contents of ano

perfect!

"Pete_UK" wrote:

Put this formula in C1, then:

=IF(B1="c",-A1,A1)

and copy down (double-click the fill handle [the small black square in
the bottom right corner of the cursor] with C1 selected).

If you want to put the values back in column A, then highlight the
cells in C, click <copy then Edit | Paste Special | Values (check) |
OK then <Enter. This will have fixed the values, so that you can now
copy them over the original values in column A and delete column C.

Hope this helps.

Pete

On Oct 29, 7:00 pm, adam wrote:
How do I make the numerical value of column "a" postive or negative based on
the text value of column "b"

For example:

$126,513.00 c
$5,616,156.00 d
$132.00 d
$156.00 d
$55,444.00 c

When I upload the data all numbers come up positive. I would like it to
make it so the number comes up negative if column b contains a "c" and
positive if it contains a "d". I am willing to have to create a function in
row c and have the numbers in "a" move to column "c".




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default making a # value positive or negative based on contents of ano

Thanks for the feedback.

Pete

On Oct 29, 7:29 pm, adam wrote:
perfect!



"Pete_UK" wrote:
Put this formula in C1, then:


=IF(B1="c",-A1,A1)


and copy down (double-click the fill handle [the small black square in
the bottom right corner of the cursor] with C1 selected).


If you want to put the values back in column A, then highlight the
cells in C, click <copy then Edit | Paste Special | Values (check) |
OK then <Enter. This will have fixed the values, so that you can now
copy them over the original values in column A and delete column C.


Hope this helps.


Pete


On Oct 29, 7:00 pm, adam wrote:
How do I make the numerical value of column "a" postive or negative based on
the text value of column "b"


For example:


$126,513.00 c
$5,616,156.00 d
$132.00 d
$156.00 d
$55,444.00 c


When I upload the data all numbers come up positive. I would like it to
make it so the number comes up negative if column b contains a "c" and
positive if it contains a "d". I am willing to have to create a function in
row c and have the numbers in "a" move to column "c".- Hide quoted text -


- Show quoted text -



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
making # + or - based on another cells contents adam Excel Discussion (Misc queries) 2 October 29th 07 09:11 PM
negative and positive sums Chad Excel Worksheet Functions 8 July 28th 07 03:12 AM
Some Positive, Some Negative Marsh Excel Worksheet Functions 3 December 16th 06 08:57 PM
IF positive/If negative???? CadensDad Excel Worksheet Functions 1 October 14th 05 02:15 PM
Formula to make Negative Values Positive & Positive Values Negative? mustard Excel Discussion (Misc queries) 4 September 26th 05 10:05 PM


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