Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default Negative format

Hi

How can i make this
til1pris.Value = FormatNumber(Range("beregnforsikring!$q$1").Value, 2)

So the value in beregnforsikring!$q$1 become negative.

regards alvin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Negative format

Hei Alvin

In very general, what these things do is taking whatever meaningful from the
right side of the = and put this result to the lucky winner on the left
side. So what you do here is setting the til1pris value, you are not
changing the q1 value.

But the code is a little mysterious. Please provide some more detail.

HTH. Best wishes Harald

"Alvin Hansen" skrev i melding
...
Hi

How can i make this
til1pris.Value = FormatNumber(Range("beregnforsikring!$q$1").Value, 2)

So the value in beregnforsikring!$q$1 become negative.

regards alvin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Negative format

til1pris.Value = FormatNumber( _
Range("beregnforsikring!$q$1").Value * -1, 2)

--
Regards,
Tom Ogilvy


"Alvin Hansen" wrote in message
...
Hi

How can i make this
til1pris.Value = FormatNumber(Range("beregnforsikring!$q$1").Value, 2)

So the value in beregnforsikring!$q$1 become negative.

regards alvin



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 209
Default Negative format

Thanks again tom
Regards alvin


"Tom Ogilvy" skrev:

til1pris.Value = FormatNumber( _
Range("beregnforsikring!$q$1").Value * -1, 2)

--
Regards,
Tom Ogilvy


"Alvin Hansen" wrote in message
...
Hi

How can i make this
til1pris.Value = FormatNumber(Range("beregnforsikring!$q$1").Value, 2)

So the value in beregnforsikring!$q$1 become negative.

regards alvin




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
pos & negative format?? d fallon[_2_] Excel Discussion (Misc queries) 5 September 25th 09 07:35 PM
Negative Time Format MarcusLesser Excel Discussion (Misc queries) 1 February 5th 07 12:10 PM
Format to a negative value kharrison Excel Worksheet Functions 3 March 13th 06 10:40 PM
Negative Number Format () Not available MAX258 Excel Discussion (Misc queries) 1 October 13th 05 10:12 PM
How do I format a negative percent? Hawk186 Excel Discussion (Misc queries) 1 February 10th 05 09:02 PM


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