Countif date range AND Countif col in same row isnotblank.

tnesseth

New Member
Joined
Feb 11, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Long time Reader First Time Pleader -

Guy I hope none has asked this same question exactly.
I have a 1400 fields in db object- i need the count of fields usage from the fields inception date.

Table one: Column A is the field Name then Created date field and then countif range from table two (all the records)

Field NameCreate DateUsage from create
ABM_TIER_1__C11/4/20201216
ACCOUNTID2/11/2021n/a
ACCOUNT_BU_VS_OPP_BU_MISMATCH__C1/6/20205673
Table two (all the records and each fields contents)
ABM_TIER_1__CACCOUNTIDACCOUNTID
4/16/2004​
T06:35:48.000Z
FALSE​
4/16/2004​
T06:35:48.000Z
FALSE​
4/16/2004​
T06:35:48.000Z
FALSE​

essentially i need a count of fields populated on or after their respective created dates.
so i can thoughtfully argue which fields can burn in eternal h..... you get the gist :)

You are true heroes!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Nope, I've read it twice, and it doesn't make sense. I think you ought to have another go at explaining what your table contents are (i.e. meaning), and what you need to do ... maybe explaining the logic in English.
 
Upvote 0
Nope, I've read it twice, and it doesn't make sense. I think you ought to have another go at explaining what your table contents are (i.e. meaning), and what you need to do ... maybe explaining the logic in English.
Nope, I've read it twice, and it doesn't make sense. I think you ought to have another go at explaining what your table contents are (i.e. meaning), and what you need to do ... maybe explaining the logic in English.
Glenn!! THANK YOU FOR THE FEED BACK!!! much appreciated and apologies for the lack of clarity. although I am pretty sure its English (albeit not the Kings ...i will give you that good sir.) So utilization of fields report factoring in the date the field was created against the date a record was created.. if the field is blank it may be because it want there Example: if I run a rpt for field usage on a table w 1000 records and declare "no one is using this field, there is only one record where it is not blank. we need to DELETE IT) . and someone says to me: "I created that field this morning" I want to avoid that convo

Two tables

Table one: Field and the date it was created for use in the table (meta)
FIELD from tableFIELD created DATEEXPECTED RESULTS - column 3 below has formula to return
field A
2/25/2020​
2 - from example below
field B
6/2/2016​
field B
1/1/2000​
field D
8/1/2011​
field E
8/1/2011​
Table two: All the records created by users and all fields

Record create dateField AMATCHESField BField CField DField EField F
2/1/2020VALUERECORD create DATE happened before FIELD A create date (no match)VALUEVALUE
3/2/2020VALUERECORD create DATE happened on or after FIELD MATCHVALUEVALUE
9/3/2019RECORD create DATE happened before FIELD A create date (no match)VALUE
3/4/2020VALUERECORD create DATE happened on or after FIELD MATCH

Assistance in the haulting of my hither and thither would make me, this day and even (dare i presume) Mr. Collins most agreeable!

Ted
 
Upvote 0
Nope, I've read it twice, and it doesn't make sense. I think you ought to have another go at explaining what your table contents are (i.e. meaning), and what you need to do ... maybe explaining the logic in English.
Glenn!! THANK YOU FOR THE FEED BACK!!! much appreciated and apologies for the lack of clarity. although I am pretty sure its English (albeit not the Kings ...i will give you that good sir.) So utilization of fields report factoring in the date the field was created against the date a record was created.. if the field is blank it may be because it want there Example: if I run a rpt for field usage on a table w 1000 records and declare "no one is using this field, there is only one record where it is not blank. we need to DELETE IT) . and someone says to me: "I created that field this morning" I want to avoid that convo

Two tables

Table one: Field and the date it was created for use in the table (meta)
FIELD from tableFIELD created DATEEXPECTED RESULTS - column 3 below has formula to return
field A
2/25/2020
2 - from example below
field B6/2/2016
field B1/1/2000
field D8/1/2011
field E8/1/2011
Table two: All the records created by users and all fields

Record create dateField AMATCHESField BField CField DField EField F
2/1/2020VALUERECORD create DATE happened before FIELD A create date (no match)VALUEVALUE
3/2/2020VALUERECORD create DATE happened on or after FIELD MATCHVALUEVALUE
9/3/2019RECORD create DATE happened before FIELD A create date (no match)VALUE
3/4/2020VALUERECORD create DATE happened on or after FIELD MATCH

Assistance in the haulting of my hither and thither would make me, this day and even (dare i presume) Mr. Collins most agreeable!

Ted
 
Upvote 0
OK, I think I'm starting to understand. So, don't you just need to fetch the Field creation date for a formula in the bottom table and do a simple compare to the record create date (compare using greater than sign)?
 
Upvote 0
OK, I think I'm starting to understand. So, don't you just need to fetch the Field creation date for a formula in the bottom table and do a simple compare to the record create date (compare using greater than sign)?
that yes and then sum the number of matches in each table 2 column to produce results for table 1
if field create is before record create AND there is a value in the field
I have a nested if nut i need it to sum the whole column - ignore the 'T","F" if should be a sum of all in column that meet criteria
hope this is helpful -and thanks again!

1613149150526.png
 
Upvote 0
The IF goes in Table 2. Why are you putting it in Table 1?
 
Upvote 0
The IF goes in Table 2. Why are you putting it in Table 1?

Table 1 in the ONE
and
Table 2 (field names from table 1 transposed as header), is the MANY

I cheated it to make it easier for the date condition
i did a vlookup on the from table two to get the vertical date from table one in Row 2


1613189315785.png
 
Upvote 0
I know the relationship ... I said to do the test in the MANY and collate in the ONE ... which is exactly what you've done ... except you did a countifs instead of testing each row, which is great. So, I'd say your problem is solved?
 
Upvote 0
Solution
I know the relationship ... I said to do the test in the MANY and collate in the ONE ... which is exactly what you've done ... except you did a countifs instead of testing each row, which is great. So, I'd say your problem is solved?
Yes sir. thanks. i still would love to know how to in one move
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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