Hi everyone,
I'll try my best to explain this, but may need to take a screenshot. I have data that I need to sort and and do counts for multiple factors. I am sorting into various spreadsheets manually (i.e., putting year 1995 in one workbook, year 1996 in another workbook, etc.) because it is a large dataset. Within each year workbook, I need to do some sorting of the data into separate spreadsheets, which is fine. So my situation is:
- I have 3 separate study areas (A, B, C) - one in each column. I use =COUNTIF(A2:Ax, "A"), etc. to get the count of cases in each study area. Then, I need to get the count of cases in each study area for male and for female (e.g., =COUNTIF(A2:Ax, "A", B2:Bx, "male"). Once this is done, I need to get the count of cases for each study area, for each age group, then within the age groups for males and for females (e.g., first for age group =COUNTIF(A2:Ax, "A", C2:Cx, "23") then the 2 rows following this would be for males 23 and females 23 =COUNTIF(A2:Ax, "A", C2:Cx, "23", B2:Bx, "male"). And I need to do each age year separately if there are cases that fall in that age (so basically each year from 0-84 and then anything 85+ is lumped together).
I'm wondering if there is a way that I can drag across rows or down columns to make things easier. So as of now, for each gender/age, I have to keep the variables the same, but change the study area name, or if I go down columns I keep the study area name the same, but have to change age or age and gender. I have 11 years of records to do this for and a few hundred thousand total cases, so I'm just seeing if there is a way I can do this more efficiently. Thanks in advance
Now that I'm working on it again - it's basically how I can keep some of the factors (such as study area) constant, but easily change other values down the column (such as age, or gender, or both).
Bookmarks