Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35
Default Urgent - make formula work with both decimal separators

I have a customer who has in my mind a strange request:

In cell A3 I have the formula =A1*A2

The value in A2 is always the same but the user is allowed to enter a
value in A1 and my customer wants to make the calculation in A3 work no
matter if the user enters a value with "." or "," as decimal separator.

As it is now if the user enters a value with the opposit decimal
separator compared to standard in A1 the result in A3 is ########.

How can I solve this?

Regards,

S

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Urgent - make formula work with both decimal separators

=IF(ISERROR(FIND(",",A1)),A1,VALUE(SUBSTITUTE(A1," ,",".")))

If your standard decimal separaor = ".", otherwise the other way around.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


wrote in message oups.com...
|I have a customer who has in my mind a strange request:
|
| In cell A3 I have the formula =A1*A2
|
| The value in A2 is always the same but the user is allowed to enter a
| value in A1 and my customer wants to make the calculation in A3 work no
| matter if the user enters a value with "." or "," as decimal separator.
|
| As it is now if the user enters a value with the opposit decimal
| separator compared to standard in A1 the result in A3 is ########.
|
| How can I solve this?
|
| Regards,
|
| S
|


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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
one formula to make a multiplication table work Paige Excel Worksheet Functions 3 September 14th 05 06:30 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
How do I make an If-Then formula in Excel? kdub1980 Excel Worksheet Functions 3 November 11th 04 06:08 AM


All times are GMT +1. The time now is 06:18 PM.

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"