Home

Excel Conditional Decimal Places

%3CLINGO-SUB%20id%3D%22lingo-sub-850098%22%20slang%3D%22en-US%22%3EExcel%20Conditional%20Decimal%20Places%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-850098%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20anyone%20know%20what%20formula%20or%20Conditional%20format%2Fnumber%20that%20will%20format%20dollar%20values%20so%20that%26nbsp%3Bpennies%20are%20shown%20only%20if%20the%20amount%20borrowed%20is%20less%20than%20one%20million%20and%20anything%20over%20a%20million%20only%20shows%20a%20whole%20number%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-850098%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-850361%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Conditional%20Decimal%20Places%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-850361%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F407596%22%20target%3D%22_blank%22%3E%40hilsy12%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20use%20%3CEM%3E%3CSTRONG%3Eround()%3C%2FSTRONG%3E%3C%2FEM%3Efunction%20with%20%3CEM%3E%3CSTRONG%3Eif()%3C%2FSTRONG%3E%3C%2FEM%3Eand%20achieve%20desired%20result.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DIF(E3%26gt%3B%3D1000000%2CROUND(E3%2C0)%2CE3)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAttached%20file%20is%20also%20attached%20for%20your%20reference.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ETauqeer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-850360%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Conditional%20Decimal%20Places%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-850360%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F407596%22%20target%3D%22_blank%22%3E%40hilsy12%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eyou%20can%20use%20custom%20format%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%5B%26lt%3B1000000%5D%23%2C%23%230.00%3B%5B%26gt%3B%3D1000000%5D%23%2C%23%23%23%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20693px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F131395i37A9214731745EED%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-09-12_16-26-06.png%22%20title%3D%222019-09-12_16-26-06.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-850363%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Conditional%20Decimal%20Places%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-850363%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239215%22%20target%3D%22_blank%22%3E%40tauqeeracma%3C%2FA%3E%26nbsp%3BBut%20if%20the%20cell%20is%20%3CSTRONG%3Eformatted%3C%2FSTRONG%3Eto%20show%20with%20decimals%2C%20the%20rounded%20number%20will%20still%20show%20with%20.00%20at%20the%20end%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-850365%22%20slang%3D%22en-US%22%3ERe%3A%20Excel%20Conditional%20Decimal%20Places%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-850365%22%20slang%3D%22en-US%22%3ECorrect%2C%20you%20are%20right%2C%20thanks%3C%2FLINGO-BODY%3E
hilsy12
Occasional Visitor

Does anyone know what formula or Conditional format/number that will format dollar values so that pennies are shown only if the amount borrowed is less than one million and anything over a million only shows a whole number?

 

Thanks

4 Replies

Hello @hilsy12 ,

 

you can use custom format

 

[<1000000]#,##0.00;[>=1000000]#,###

 

2019-09-12_16-26-06.png

 

Hi @hilsy12 

You can use round() function with if() and achieve desired result.

 

=IF(E3>=1000000,ROUND(E3,0),E3)

 

Attached file is also attached for your reference.

Thanks

Tauqeer

@tauqeeracma But if the cell is formatted to show with decimals, the rounded number will still show with .00 at the end

Correct, you are right, thanks
Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
201 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies