January 20, 2018
I have a spreadsheet that uses this formula, that returns results based on a two digit code in a row in the source sheet.
The two digit code can have data like GD or Gd which means different things, when I run the code it does not differentiate between the two and places the data GD and Gd into the samesheet rather than one for GD and one for Gd.
Below is the code {=IF(COUNTIF('Data 2019'!$A$1:$A$517,$A$2)<ROWS($C$1:C1),"",INDEX('Data 2019'!$C$1:$C$517,SMALL(IF('Data 2019'!$A$1:$A$517=$A$2,ROW('Data 2019'!$A$1:$A$517)),ROW('Data 2019'!B1))))}
I know that I will need to put an exact command somewhere but not sure.
=$A$2,ROW('Data 2019'!$A$1:$A$517)),ROW('Data 2019'!B1))))} is where it looks for the GD or Gd.
Thank you for your help in advance.
Trusted Members
Moderators
November 1, 2018
January 20, 2018
Thank you Velouria, for answering the question.
I never wrote the formula, could you explain what the difference would be using SUMPRODUCT or IFERROR, and what the outcomes would be. 🙂
And Also I am now getting the following error "Too Few arguments" when I have entered the formula
{=IF(COUNTIF('Data 2019'!$A$1:$A$517,$A$2)<ROWS($B$1:B1),"",INDEX('Data 2019'!$B$1:$B$517,SMALL(IF(EXACT('Data 2019'!$A$1:$A$517=$A$2,ROW('Data 2019'!$A$1:$A$517)),ROW('Data 2019'!A1)))))}
Sorry for all the questions this one is way to complicated for me. Happy to attach a copy of the spreadsheet
1 Guest(s)