PC Review


Reply
Thread Tools Rate Thread

change 0.87DR to -.087 and 0.55CR to 0.55

 
 
=?Utf-8?B?QmlsbHlSb2dlcnM=?=
Guest
Posts: n/a
 
      20th Nov 2006
I need to drof the DR and CR which is not problem, but I also need to change
the number that end in DR to a negative number.

I've tried using the if function and the right function to check for the
letters DR
like this but it doesn't work.

=IF(RIGHT(a1,2)=dr,a1*-1,a1)

I need to check for text characters DR and i can't figure out how to do it
with the if function. I may need to use a macro, I'm not sure.
--
Billy Rogers

Dallas,TX

Currently Using SQL Server 2000, Office 2000 and Office 2003
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBRLg==?=
Guest
Posts: n/a
 
      20th Nov 2006
> =IF(RIGHT(a1,2)=dr,a1*-1,a1)

TRY
=IF(RIGHT(A1,2)="DR",MID(A1,1,(LEN(A1)-2))*-1,MID(A1,1,LEN(A1)-2)*1)
--
Mike Q.


"BillyRogers" wrote:

> I need to drof the DR and CR which is not problem, but I also need to change
> the number that end in DR to a negative number.
>
> I've tried using the if function and the right function to check for the
> letters DR
> like this but it doesn't work.
>
> =IF(RIGHT(a1,2)=dr,a1*-1,a1)
>
> I need to check for text characters DR and i can't figure out how to do it
> with the if function. I may need to use a macro, I'm not sure.
> --
> Billy Rogers
>
> Dallas,TX
>
> Currently Using SQL Server 2000, Office 2000 and Office 2003

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      20th Nov 2006
"dr"

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"BillyRogers" <(E-Mail Removed)> wrote in message
news:60558C81-D4F4-41C5-84A9-(E-Mail Removed)...
>I need to drof the DR and CR which is not problem, but I also need to
>change
> the number that end in DR to a negative number.
>
> I've tried using the if function and the right function to check for the
> letters DR
> like this but it doesn't work.
>
> =IF(RIGHT(a1,2)=dr,a1*-1,a1)
>
> I need to check for text characters DR and i can't figure out how to do it
> with the if function. I may need to use a macro, I'm not sure.
> --
> Billy Rogers
>
> Dallas,TX
>
> Currently Using SQL Server 2000, Office 2000 and Office 2003



 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      20th Nov 2006

=LEFT(B7,FIND("r",B7)-2)*IF(RIGHT(B7,2)="dr",-1,1)

--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Don Guillett" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "dr"
>
> --
> Don Guillett
> SalesAid Software
> (E-Mail Removed)
> "BillyRogers" <(E-Mail Removed)> wrote in message
> news:60558C81-D4F4-41C5-84A9-(E-Mail Removed)...
>>I need to drof the DR and CR which is not problem, but I also need to
>>change
>> the number that end in DR to a negative number.
>>
>> I've tried using the if function and the right function to check for the
>> letters DR
>> like this but it doesn't work.
>>
>> =IF(RIGHT(a1,2)=dr,a1*-1,a1)
>>
>> I need to check for text characters DR and i can't figure out how to do
>> it
>> with the if function. I may need to use a macro, I'm not sure.
>> --
>> Billy Rogers
>>
>> Dallas,TX
>>
>> Currently Using SQL Server 2000, Office 2000 and Office 2003

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change pivot source w/o refresh? Can't change original/copied pivo =?Utf-8?B?VG9ieSBFcmtzb24=?= Microsoft Excel Programming 4 16th Jul 2007 08:23 PM
Change conditional formatting to coloured alternate rows dependent on a change in date? StargateFan Microsoft Excel Programming 4 2nd Aug 2006 11:28 AM
how to change the value of Request.ServerVariables["HTTP_REFERER"] on the ser ver? if not possible is there some way to change it by sending back javascript to the client and having the client automaticaly do something to change the value o Daniel Microsoft Dot NET Framework 1 14th Jul 2005 03:24 PM
how to change the value of Request.ServerVariables["HTTP_REFERER"] on the ser ver? if not possible is there some way to change it by sending back javascript to the client and having the client automaticaly do something to change the value o Daniel Microsoft C# .NET 1 14th Jul 2005 02:12 PM
how to change the value of Request.ServerVariables["HTTP_REFERER"] on the ser ver? if not possible is there some way to change it by sending back javascript to the client and having the client automaticaly do something to change the value o Daniel Microsoft Dot NET 0 14th Jul 2005 10:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 PM.