Date-wise Calculation

azad092

Board Regular
Joined
Dec 31, 2019
Messages
198
Office Version
  1. 2007
Platform
  1. Windows
Dear members
good evening
I have a data entry excel file with different sheets One sheet is data entry and others are on different reports these reports are generated from the data entry sheet by using different formulas
for example =COUNTIF(MTN!G2:G399,"RTA")
I want that in this formula instead of using the range G2:G399 only column G should be used and the range of specific data should be base on date range. if it is possible please guide me
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try this as a start

=COUNTIFS(MTN!G2:G399,"RTA",MTN!G2:G399,">="&A1,MTN!G2:G399,"<="&B1)

A1 = start date
B1 = end date
 
Upvote 0
=COUNTIFS(MTN!G2:G399,"RTA",MTN!G2:G399,">="&A1,MTN!G2:G399,"<="&B1)
thanks for your kind attention
No dear this idea is not useful
but I want to share an idea, maybe you understand and also help me
look
I have tow Sheets MTN (for Data entry) and G Report( for Report)
I am using this formula in G Report sheet to calculate the data =COUNTIF(MTN!G2:G399,"RTA")
In G Report, Cell Z3 I enter the specific date
to define the date range I think the following formula add with the above countif formula like as

=IF(ISNUMBER(MATCH(Z3,MTN'!B2:B399,0)),COUNTIF(MTN!G2:G399,"RTA","0")
but I am in trouble how to combine tow formulas
if you know please guide me
In this way I will become able to generate a report of any date by just change the date in Cell Z3
 
Upvote 0
It would be easier if you posted some sample data using the XL2BB option, showing what results you expect.

Trying to guess what you want is never a good idea, but maybe

=COUNTIFS(MTN!G2:G399,"RTA",MTN'!B2:B399,Z3)
 
Upvote 0

Forum statistics

Threads
1,214,805
Messages
6,121,664
Members
449,045
Latest member
Marcus05

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