Number format when combined with text

RodneyW

Active Member
Joined
Sep 24, 2010
Messages
475
Office Version
  1. 2013
Platform
  1. Windows
Cell G6 is using this formula to calculate the number of weeks between two dates. =DATEDIF($F$5,F6,"d")/7 It is producing a value of 14. That cell has Number format with 0 decimals.

Cell G7 is using this formula to calculate the number of weeks between two dates: =DATEDIF($F$5,F7,"d")/7 It is producing a value of 27. That cell has Number format with 0 decimals.

Cell G29 is using this formula =($G$6&" Weeks Remaining") and produces a result of... 14 weeks remaining - This is what I want.
Cell I29 is using this formula =($G$7&" Weeks Remaining") an produces a result of... 27.1428571428571 weeks remaining. I need the result to have no decimal places.

Both cell G29 and I29 are formatted as "number" with no decimal places.

What am I missing?

Thanks in advance
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
How about
Excel Formula:
=INT($G$7)&" Weeks Remaining"
 
Upvote 0
Solution
Your formula does work, the number format of the cell is irrelevant as the formula returns the actual value, not what you see.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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