I have been helping the organization I volunteer my Excel knowledge (which is still average). We work with data such as lifespans of oldest people all over the world (for instance, I created this output file for my organization that was posted on this page by the organization).
In the last few months, I have worked with conditional formatting, dealing with Year+400 (dates before 1900 with the workaround of adding 400 years to the Gregorian calendar), and using SUMPRODUCT to determine highest rank of a person.
Now, a couple of months ago, per request, I was able to determine precisely how many names were living on a particular date via multiple SUMPRODUCT arrays (first array was whether the death date was later than desired date; second array was whether that case was at least 110 years of age; 3rd array was whether that case's status was verified and/or living). Of course, I did this the long way by entering each date in each row from 1955 to present (I know, crazy of me, huh?).
More recently, I began to use PivotTable and was able to provide reports of how many cases died in a specific year. I knew that PivotTable probably has what I'm looking for now but I'm tinkering without luck:
I'm now looking to create/setup a Pivot Table where I enter a random date and it would only show me who was living on that date out of all names.
I already had a separate Tab in where I enter a day, month, year in three cells (which actually goes to yet another tab in where I calculated their ages as of that date if still living). Back to the "AsOfDate" tab, I was able to set up an Advanced Filter to pick a list range (master table), criteria range (criteria in another tab where I asked only for living cases & at least age of 110), and copying to the headers of the current tab.
It works beautifully in telling us who was living on that date. However, it means that I have to enter a new date to re-do the Advanced Filter.
Instead, I think PivotTable has the answer but I don't see how I can tell PivotTable a specific date (the only relevant date formats I have in the master data are obviously the born+400 dates and died+400 dates). From what I'm seeing, I can only choose dates that are in the data? Or am I missing something obvious?
How would you go around making a living list of cases as of a specific date? For example, to do a smaller dataset, like the list of United States presidents by age, how would I know how many U.S. presidents were alive on January 1, 1955?
P.S. Sorry for the long post. I'm a chatterbox.
* CalvinTy
In the last few months, I have worked with conditional formatting, dealing with Year+400 (dates before 1900 with the workaround of adding 400 years to the Gregorian calendar), and using SUMPRODUCT to determine highest rank of a person.
Now, a couple of months ago, per request, I was able to determine precisely how many names were living on a particular date via multiple SUMPRODUCT arrays (first array was whether the death date was later than desired date; second array was whether that case was at least 110 years of age; 3rd array was whether that case's status was verified and/or living). Of course, I did this the long way by entering each date in each row from 1955 to present (I know, crazy of me, huh?).
More recently, I began to use PivotTable and was able to provide reports of how many cases died in a specific year. I knew that PivotTable probably has what I'm looking for now but I'm tinkering without luck:
I'm now looking to create/setup a Pivot Table where I enter a random date and it would only show me who was living on that date out of all names.
I already had a separate Tab in where I enter a day, month, year in three cells (which actually goes to yet another tab in where I calculated their ages as of that date if still living). Back to the "AsOfDate" tab, I was able to set up an Advanced Filter to pick a list range (master table), criteria range (criteria in another tab where I asked only for living cases & at least age of 110), and copying to the headers of the current tab.
It works beautifully in telling us who was living on that date. However, it means that I have to enter a new date to re-do the Advanced Filter.
Instead, I think PivotTable has the answer but I don't see how I can tell PivotTable a specific date (the only relevant date formats I have in the master data are obviously the born+400 dates and died+400 dates). From what I'm seeing, I can only choose dates that are in the data? Or am I missing something obvious?
How would you go around making a living list of cases as of a specific date? For example, to do a smaller dataset, like the list of United States presidents by age, how would I know how many U.S. presidents were alive on January 1, 1955?
P.S. Sorry for the long post. I'm a chatterbox.
* CalvinTy
Last edited: