Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default How can I display a loss or gain (currency)

If I start with $1000 and lose $250, I would like to somehow indicate that
the remainder ($750 in this case) was actually "down" from the original
$1000. Conversely, I would like to have some indication that a gain was
actually "up" from the original $1000.
--
BB
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default How can I display a loss or gain (currency)

You could use conditional formatting.

If your initial amount is in cell A1, under format, conditional formatting,
choose cell is "less than" and enter $A$1, then choose a format.

"brewster56" wrote:

If I start with $1000 and lose $250, I would like to somehow indicate that
the remainder ($750 in this case) was actually "down" from the original
$1000. Conversely, I would like to have some indication that a gain was
actually "up" from the original $1000.
--
BB

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default How can I display a loss or gain (currency)

Hi,

If you only want the number for display purposes then

=IF(B1<A1,A1-B1&" - Down",B1-A1&" - Up")

If you want to use the number in future calculations than

=IF(B1<A1,A1-B1,B1-A1)
and then use conditional formatting

To conditionally format your cell(s):

In 2003:
1. Select the cell you want to format
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=A1B1
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=A1B1
5. Click the Format button and choose a format.
6. Click OK twice

You will need to create a second rule in both cases
=A1<B1

If this helps, please click the Yes button.

Cheers,
Shane Devenshire
=A1B1



"brewster56" wrote:

If I start with $1000 and lose $250, I would like to somehow indicate that
the remainder ($750 in this case) was actually "down" from the original
$1000. Conversely, I would like to have some indication that a gain was
actually "up" from the original $1000.
--
BB

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default How can I display a loss or gain (currency)

Works perfectly thank you. Mine was more the latter scenario
"=IF(B1<A1,A1-B1,B1-A1) "
--
BB


"Shane Devenshire" wrote:

Hi,

If you only want the number for display purposes then

=IF(B1<A1,A1-B1&" - Down",B1-A1&" - Up")

If you want to use the number in future calculations than

=IF(B1<A1,A1-B1,B1-A1)
and then use conditional formatting

To conditionally format your cell(s):

In 2003:
1. Select the cell you want to format
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=A1B1
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=A1B1
5. Click the Format button and choose a format.
6. Click OK twice

You will need to create a second rule in both cases
=A1<B1

If this helps, please click the Yes button.

Cheers,
Shane Devenshire
=A1B1



"brewster56" wrote:

If I start with $1000 and lose $250, I would like to somehow indicate that
the remainder ($750 in this case) was actually "down" from the original
$1000. Conversely, I would like to have some indication that a gain was
actually "up" from the original $1000.
--
BB

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default How can I display a loss or gain (currency)

Thank you very much this works and in line with other replies.
--
BB


"~L" wrote:

You could use conditional formatting.

If your initial amount is in cell A1, under format, conditional formatting,
choose cell is "less than" and enter $A$1, then choose a format.

"brewster56" wrote:

If I start with $1000 and lose $250, I would like to somehow indicate that
the remainder ($750 in this case) was actually "down" from the original
$1000. Conversely, I would like to have some indication that a gain was
actually "up" from the original $1000.
--
BB



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default How can I display a loss or gain (currency)

Isn't that just =ABS(A1-B1) ?
--
David Biddulph

"brewster56" wrote in message
...
Works perfectly thank you. Mine was more the latter scenario
"=IF(B1<A1,A1-B1,B1-A1) "
--
BB


"Shane Devenshire" wrote:

Hi,

If you only want the number for display purposes then

=IF(B1<A1,A1-B1&" - Down",B1-A1&" - Up")

If you want to use the number in future calculations than

=IF(B1<A1,A1-B1,B1-A1)
and then use conditional formatting

To conditionally format your cell(s):

In 2003:
1. Select the cell you want to format
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=A1B1
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=A1B1
5. Click the Format button and choose a format.
6. Click OK twice

You will need to create a second rule in both cases
=A1<B1

If this helps, please click the Yes button.

Cheers,
Shane Devenshire
=A1B1



"brewster56" wrote:

If I start with $1000 and lose $250, I would like to somehow indicate
that
the remainder ($750 in this case) was actually "down" from the original
$1000. Conversely, I would like to have some indication that a gain was
actually "up" from the original $1000.
--
BB



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
formula for calculating wt gain or loss cumulative in excel Yaka Setting up and Configuration of Excel 4 April 22nd 23 08:13 AM
Weight Gain Loss JoeMNY Excel Discussion (Misc queries) 3 December 31st 06 10:32 PM
does anyone have a chart for weight gain or loss in kilos? Robynr Excel Discussion (Misc queries) 3 January 9th 06 12:01 PM
Excel Template to track Gain/Loss for IRS purposes BogueBanks Excel Discussion (Misc queries) 0 April 7th 05 07:27 PM
Spreadsheet to do annual investment gain$, % gain, for list notaspreadsheetgenius Excel Worksheet Functions 0 January 9th 05 07:51 AM


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