Including number format in formula

Z

Zilbandy

I have a simple "if/then/else" formula that I would like to display
the result of the "else" portion with no decimal places showing,
instead of the default value of the cell. Can I include the format in
the formula? Here is my formula:

=IF(D12>75,D12/E12,D12)

Thanks,
 
V

VBA Noob

Hi,

Try =IF(D12>75,D12/E12,INT(D12))

or replace Int with roundup or rounddown

VBA Noob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top