LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Help: Modulo... not... quite...right...

Hey all good helping people.

I am trying to create a Modulo function to fill out a round/pick
calculation in a draft type spreadsheet.

Specifically, I want the value: 1 to show as 1:1 and the value: 12 to
show as 1:12.

The formula that I have now is: =ROUNDDOWN((P3/12)+1,0)&"/"&MOD(P3,12)

(where the number is in P3)

The formula works fine, until I get to the value of 12, then it
calculates to 2:0 and not 1:12 (which is my goal).

Do I need to add some if/then logic for when the modulo =0, then
subtract one from the 1st part, and set the second part =12? Or is
there a better way?
 
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



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