How to Define the Date Format in a Formula

azad092

Board Regular
Joined
Dec 31, 2019
Messages
198
Office Version
  1. 2007
Platform
  1. Windows
Dear Members
good morning

I am using a formula to display the sum of a range including the date ranges like as in DASHBOARD C11 is start date and in DASHBOARD D11 is end date... the given below formula works perfectly but there is one problem....it display the date as general value instead of date in date format ... Petty Cash Bills From 44606 To 44606 Rs.0
Even I have set the date format in the data source and formula cell.... please guide me in this issue
="Petty Cash Bills From "&DASHBOARD!C11&" To "& DASHBOARD!D11 & " Rs."& SUMIFS(C4:C1000000,A4:A1000000,">="&DASHBOARD!C11,A4:A1000000,"<="&DASHBOARD!D11)
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
="Petty Cash Bills From "&TEXT(Dashboard!C11,"d mmm yyyy") &" To "& TEXT(Dashboard!D11,"d mmm yyyy") & ....

Change the "d mmm yyyy" to your desired format.
 
Upvote 0
="Petty Cash Bills From "&TEXT(Dashboard!C11,"d mmm yyyy") &" To "& TEXT(Dashboard!D11,"d mmm yyyy") & ....

Change the "d mmm yyyy" to your desired format.
thanks for your good response
its working perfect
thanks again
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,802
Members
449,095
Latest member
m_smith_solihull

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