#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Excel question

Hi, My knowledge of excel is quite basic so would appreciate any help.

I am creating a spreadsheet and if i have a negative number i want to put in a column with a formula that will come up with a 'P' (for pay)and if positive then a 'c' (for credit).

THanks,


EggHeadCafe - Software Developer Portal of Choice
HANDLING BINARY AND TEXT DATA IN XML OVER THE WIRE
http://www.eggheadcafe.com/tutorials...-and-text.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default more help...

Not to worry....answere my own question.

=IF(AD2<0,"P","R")

Now am looking for a formula that when it sees a P will take away the - and from the number and if it is a credit it will remain the same.

Thanks,
Tamsyn



tamsyn cross wrote:

Excel question
30-Oct-09

Hi, My knowledge of excel is quite basic so would appreciate any help.

I am creating a spreadsheet and if i have a negative number i want to put in a column with a formula that will come up with a 'P' (for pay)and if positive then a 'c' (for credit).

THanks,

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
PABZlib In-Memory ASP/ XML Compression Component
http://www.eggheadcafe.com/tutorials...ry-asp-xm.aspx
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 108
Default more help...

On 30 Oct, 16:07, tamsyn cross wrote:
Not to worry....answere my own question.

=IF(AD2<0,"P","R")

Now am looking for a formula that when it sees a P will take away the - and from the number and if it is a credit it will remain the same.

Thanks,
Tamsyn

tamsyn cross wrote:

Excel question
30-Oct-09

Hi, My knowledge of excel is quite basic so would appreciate any help.

I am creating a spreadsheet and if i have a negative number i want to put in a column with a formula that will come up with a 'P' (for pay)and if positive then a 'c' (for credit).

THanks,

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
PABZlib In-Memory ASP/ XML Compression Componenthttp://www.eggheadcafe.com/tutorials/aspnet/af07211b-a0c2-45df-ab26-1...


Have a look at ABS, eg

=ABS(D2)

Regards

Steve
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,298
Default Excel question

so you have a number in lets say cell B1
the in C1 put
=IF(B1<=0,"P","C")

This says if the value in b1 is less than or equal to zero, use the letter
"P" otherwise use the letter "C")

Now assuming B1 is the top of a column you now need to replicate the formula
down, to do this, select the cell with the formula, C1. Hover the mouse over
the bottom right hand corner until it becomes a black cross, then double
click to automatically replicate the formula down the column.






"tamsyn cross" wrote:

Hi, My knowledge of excel is quite basic so would appreciate any help.

I am creating a spreadsheet and if i have a negative number i want to put in a column with a formula that will come up with a 'P' (for pay)and if positive then a 'c' (for credit).

THanks,


EggHeadCafe - Software Developer Portal of Choice
HANDLING BINARY AND TEXT DATA IN XML OVER THE WIRE
http://www.eggheadcafe.com/tutorials...-and-text.aspx
.

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
Excel Question Rolli112000 Excel Worksheet Functions 3 April 7th 08 02:46 AM
Excel Question [email protected] Excel Discussion (Misc queries) 4 March 13th 07 01:42 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 02:25 PM.

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"