Type Hindi numbers and show decimal numbers when necessary

karammaged

New Member
Joined
May 8, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi, I have a workbook, it has integer and decimal numbers.

I want to achieve two things:
  • The numbers must be in Hindi format.
  • The decimal numbers must remain as they are without any rounding, and the integer numbers must remain as they are.

I want to achieve those two things with in mind other two things:
  • The workbook will be shared for other people and need to appear to them like mine.
  • Also, they could copy data from this workbook to another workbook and edit it.
What I did initially?

I highlighted the cells that has numbers and formatted it with custom type: [$-2000000]###0.#######. This make the numbers in cells are Hindi and keep any decimal numbers as they are, but when I put integer number, a comma appears with the number like this: 5.
I heard about using conditional formatting, but didn't work with me! Excel number format to only show decimals when necessary

Note: I think Excel could handle untill 15 decimal numbers after comma but in my case shows only 7 decimal numbers after comma and any other numbers won't show! (Yes, I tried to increase the limit here [$-2000000]###0.####### to 15 instead of 7 hastags, but it didn't work!).

What could we do? are there edits to what I have mentioned? are there other solutions? what could be most effective solution?
Thanks
This is an example:

Example.xlsx
CDEFGHI
3اختباراختباراختباراختباراختباراختبار
4اختبار٢.١٥.٥.٩٦.٦٣٢.١٥.
5اختبار٩.٤٨٤٤٩٣٢.١٨٩.٢.٥٩.٤٨٤٤٩٣٢.١٨
6اختبار٢.١٥.٥.٩٦.٦٣٥.٩٦.٦٣
7اختبار٩.٤٨٤٤٩٣٢.١٨٩.٢.٥٩.٢.٥
8اختبار٢.١٥.٥.٩٦.٦٣٥.٩٦.٦٣
9اختبار٩.٤٨٤٤٩٣٢.١٨٩.٢.٥٩.٢.٥
10اختبار٩.٤٨٤٤٩٣٢.١٨٩.٢.٥٩.٢.٥
11المجموع٤٤.٢٣٧٩٧٢٢٣.٧٢٥١.٢٩٩.٨٩٤٨.٥٨٤٤٩٣٢٠٧.٩٤
Sheet1
Cell Formulas
RangeFormula
D11:I11D11=SUM(D4:D10)
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Okay I want to share what I have found and let me know if this really a good solution or not.
  1. I choose a cell (let us say C5), and open "Format cells" menu and choose "custom" from categoy then put this code in "Type" box: [$-2000000]0
  2. After that, I open "Conditional formatting" from "Home" menu and choose "Manage Rules".
  3. Press "New Rule" and choose"Use a formula to determine which cells to format" and type this formula =MOD(C5,1)<>0 where C5 is the cell I'm on it right now.
  4. Then press "format" button while I'm on the same window, then choose number tab then choose the "custom" category and put this code [$-2000000]0.##########
  5. then with "format painter" I could make all cells I want with the same format.

Exampleaaaaaa.xlsx
CDEFGHI
3اختباراختباراختباراختباراختباراختبار
4اختبار٣.٢٥٥٥٩٦.٦٣٢.١٥
5اختبار٩.٤٨٤٤٩٣٢.١٨٩٢.٥٩.٤٨٤٤٩٣٢.١٨
6اختبار٢.١٥٥٩٦.٦٣٥٩٦.٦٣
7اختبار٩.٤٨٤٤٩٣٢.١٨٩٢.٥٩٢.٥
8اختبار٢.١٥٥٩٦.٦٣٥٩٦.٦٣
9اختبار٩.٤٨٤٤٩٣٢.١٨٩٢.٥٩٢.٥
10اختبار٩.٤٨٤٤٩٣٢.١٨٩٢.٥٩٢.٥
11المجموع٤٥.٣٨٧٩٧٢٢٣.٧٢٥١٢٩٩.٨٩٤٨.٥٨٤٤٩٣٢٠٧.٩٤
Sheet1
Cell Formulas
RangeFormula
D11:I11D11=SUM(D4:D10)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D4:I11Expression=MOD(D4,1)<>0textNO
 
Upvote 0

Forum statistics

Threads
1,215,106
Messages
6,123,120
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top