Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kharrison
 
Posts: n/a
Default Format to a negative value

I have two columns of data. The first column contains either the text L or
P. The 2nd column is a percentage value. What I wish to do is if the first
column is L then format the percentage value to a negative. If P leave as is.

Can this be done.

Any help would be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Format to a negative value

"kharrison" wrote:
I have two columns of data. The first column contains either the text L

or
P. The 2nd column is a percentage value. What I wish to do is if the

first
column is L then format the percentage value to a negative. If P leave as

is.

One way ..

Assuming the 2 cols are cols A and B, data from row1 down
Put in C1: =IF(A1="","",IF(A1="L",-B1,IF(A1="P",B1,"")))
Format C1 as percentage, copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kharrison
 
Posts: n/a
Default Format to a negative value

Max

You're a genius. Thanks - it worked perfectly.

Cheers

"Max" wrote:

"kharrison" wrote:
I have two columns of data. The first column contains either the text L

or
P. The 2nd column is a percentage value. What I wish to do is if the

first
column is L then format the percentage value to a negative. If P leave as

is.

One way ..

Assuming the 2 cols are cols A and B, data from row1 down
Put in C1: =IF(A1="","",IF(A1="L",-B1,IF(A1="P",B1,"")))
Format C1 as percentage, copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Format to a negative value

Glad it worked for you !
Thanks for the feedback ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"kharrison" wrote in message
...
Max

You're a genius. Thanks - it worked perfectly.

Cheers



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
" / " Changing Decimal number format to Fraction on Protected Cell laudie Excel Worksheet Functions 0 November 15th 05 02:13 AM
" / " Changing Decimal number format to Fraction on Protected Cell laudie Excel Worksheet Functions 0 November 15th 05 01:12 AM
Date Format Problems?? nastech Excel Discussion (Misc queries) 5 November 14th 05 01:53 AM
How to format a date to a different format Laura Excel Discussion (Misc queries) 1 March 5th 05 09:59 PM
Format cell for negative es Excel Discussion (Misc queries) 3 March 4th 05 01:23 PM


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