New to forum! Hello and thanks!
I'm trying put a column in a table of donations that indicates whether or not its the earliest donation ("FirstGift") from that individual donor. Or, better yet, have a column return whatever place each gift is ("GiftNumber") with 1 being the first/earliest gift, 2 the second, etc. Donor IDs may duplicate. Here's the sample table I'm working with (2 right-most cols are my desired output):
Date donorID Gift Amt FirstGift GiftNumber
6/29/2018 111 100 1 1
7/2/2018 222 200 0 2
7/1/2018 111 100 0 2
7/2/2018 111 500 0 3
6/29/2017 222 50 1 1
I'd like to do this with formulas, not VBA. I've gotten as far as getting the date of the earliest gift inserted in each cell using this as a ctrl + shift + enter formula: =MIN(IF([donorID]=[@donorID],[Date]))
And I suspect that doing something like this within an INDEX/MATCH formula would do it, but I'm new to CSE formulas in general and INDEX/MATCH specifically and can't seem to wrap my head around how to do it for FirstGift (much less GiftNumber). Appreciate any help on either method.
I'm trying put a column in a table of donations that indicates whether or not its the earliest donation ("FirstGift") from that individual donor. Or, better yet, have a column return whatever place each gift is ("GiftNumber") with 1 being the first/earliest gift, 2 the second, etc. Donor IDs may duplicate. Here's the sample table I'm working with (2 right-most cols are my desired output):
Date donorID Gift Amt FirstGift GiftNumber
6/29/2018 111 100 1 1
7/2/2018 222 200 0 2
7/1/2018 111 100 0 2
7/2/2018 111 500 0 3
6/29/2017 222 50 1 1
I'd like to do this with formulas, not VBA. I've gotten as far as getting the date of the earliest gift inserted in each cell using this as a ctrl + shift + enter formula: =MIN(IF([donorID]=[@donorID],[Date]))
And I suspect that doing something like this within an INDEX/MATCH formula would do it, but I'm new to CSE formulas in general and INDEX/MATCH specifically and can't seem to wrap my head around how to do it for FirstGift (much less GiftNumber). Appreciate any help on either method.