phillipus2005
New Member
- Joined
- Jun 29, 2018
- Messages
- 34
- Office Version
- 365
- Platform
- Windows
- MacOS
- Mobile
Hi
I have a long normalised table of data (research results for multiple countries in multiple waves). I am looking for a formula to identify the earliest and latest results for each question per market. In the table below, I would like to have "baseline" returned in column O for the earliest wave in each country for which there is data in column N and "latest" returned in column O for the latest wave in each country for which there is data in column N. The trouble is that in some countries, in some waves, the question was not asked at first so the "baseline" label refers to a blank score in column N so when pivoting the data to show change from baseline, it skews the results... i.e. in the below, "baseline" should be in O3 for Country 1 NOT O2.
My current formula returns "baseline" for the earliest wave (column M) per country (column L), i.e. O2, below. I can't figure out how to also factor in Column N. My current formula is: =IF(MAXIFS([Wave],[Market],[@Market])=[@Wave], "Latest", IF(MINIFS([Wave],[Market],[@Market])=[@Wave], "Baseline", ""))
Any help on how to modify this would be much appreciated - i've tried adding in another condition in the maxifs and minifs but they return blank in O3 (i guess because M2 is not the max/min)
Thanks in advance
I have a long normalised table of data (research results for multiple countries in multiple waves). I am looking for a formula to identify the earliest and latest results for each question per market. In the table below, I would like to have "baseline" returned in column O for the earliest wave in each country for which there is data in column N and "latest" returned in column O for the latest wave in each country for which there is data in column N. The trouble is that in some countries, in some waves, the question was not asked at first so the "baseline" label refers to a blank score in column N so when pivoting the data to show change from baseline, it skews the results... i.e. in the below, "baseline" should be in O3 for Country 1 NOT O2.
My current formula returns "baseline" for the earliest wave (column M) per country (column L), i.e. O2, below. I can't figure out how to also factor in Column N. My current formula is: =IF(MAXIFS([Wave],[Market],[@Market])=[@Wave], "Latest", IF(MINIFS([Wave],[Market],[@Market])=[@Wave], "Baseline", ""))
Any help on how to modify this would be much appreciated - i've tried adding in another condition in the maxifs and minifs but they return blank in O3 (i guess because M2 is not the max/min)
Thanks in advance
L | M | N | O | |
1 | Country | Wave | Score | Baseline/latest |
2 | Country 1 | 1 | Baseline | |
3 | Country 1 | 2 | 10 | |
4 | Country 1 | 3 | 20 | Latest |
5 | Country 2 | 1 | 10 | Baseline |
6 | Country 2 | 2 | 15 | |
7 | Country 2 | 3 | 20 | Latest |