Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I need 2 digits (concatenate)

I need a sentence saying: 2 half-time leads in 4 games (66,67%) has resulted
in 1 win.

I've got these cells: (A1=2) (A2=4) (A3=66,67%) and I tried this:

=concatenate("";a1;" half-time leads in ";a2;" games (";a3;") has resulted
in 1 win."). But the result is: 2 half-time leads in 4 games
(0,66666666666666667) etc

Then I tried this:

=concatenate("";a1;" half-time leads in ";a2;" games (";a3*100;"%) has
resulted in 1 win.") The result: 2 half-time leads in 4 games
(66,666666666666667%) etc

How can I return only 2 digits, so the result is 66,67% ??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default I need 2 digits (concatenate)

Hi Zigarlos,

Something like this should do what you're looking for:

=FIXED(A1,0) & " half-time leads in " & FIXED(A2, 0) & " games (" &
FIXED(A3*100, 2) & "%) has resulted in 1 win."

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]

Zigarlos wrote:
I need a sentence saying: 2 half-time leads in 4 games (66,67%) has
resulted in 1 win.

I've got these cells: (A1=2) (A2=4) (A3=66,67%) and I tried this:

=concatenate("";a1;" half-time leads in ";a2;" games (";a3;") has
resulted in 1 win."). But the result is: 2 half-time leads in 4 games
(0,66666666666666667) etc

Then I tried this:

=concatenate("";a1;" half-time leads in ";a2;" games (";a3*100;"%) has
resulted in 1 win.") The result: 2 half-time leads in 4 games
(66,666666666666667%) etc

How can I return only 2 digits, so the result is 66,67% ??



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,069
Default I need 2 digits (concatenate)

Try this:

=A1 & " half-time leads in " & A2 & " games (" & TEXT(A3,"0.00%") & ") has
resulted in 1 win."

Or this:

=A1 & " half-time leads in " & A2 & " games (" & TRUNC(A3*100) & "," &
ROUND(MOD(A3,1)*100,0) & "%) has resulted in 1 win."

This first has the percentage as 66.67%. I noticed (late) that your example
wants 66,67%. There is probably a better way to do this, using settings for
local currencies, etc.

Hope this helps,

Hutch

"Zigarlos" wrote:

I need a sentence saying: 2 half-time leads in 4 games (66,67%) has resulted
in 1 win.

I've got these cells: (A1=2) (A2=4) (A3=66,67%) and I tried this:

=concatenate("";a1;" half-time leads in ";a2;" games (";a3;") has resulted
in 1 win."). But the result is: 2 half-time leads in 4 games
(0,66666666666666667) etc

Then I tried this:

=concatenate("";a1;" half-time leads in ";a2;" games (";a3*100;"%) has
resulted in 1 win.") The result: 2 half-time leads in 4 games
(66,666666666666667%) etc

How can I return only 2 digits, so the result is 66,67% ??

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
How do you change single digits to recognized double digits? Evil with a K[_2_] Excel Worksheet Functions 5 April 3rd 23 02:29 PM
VBA write macro change column with 3 number digits to 4 digits the James C[_2_] Excel Discussion (Misc queries) 3 January 25th 10 03:12 PM
number 12 digits to 15 digits mehdy-e Excel Discussion (Misc queries) 5 November 13th 09 04:43 PM
How to customize number to 10 digits including 2 digits after deci Carina Excel Worksheet Functions 3 September 20th 07 02:50 AM
Concatenate function - keeping "displayed" extra digits EricKei Excel Discussion (Misc queries) 3 June 15th 05 10:16 PM


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