I have four 1 column ranges with the same row count: Country, Name, Category, Amount. The Country, Name and Category ranges have string values, the Amount range has doubles. the problem I'm facing is this: As long as the Amount is above or below certain value, I need to get a string of all countries under each category and each name.
Sample table:
Country Name Category Amount croatia Jon Blue 14 norway Jon Blue 23 poland Rob Green 10 egypt Eva Green 8 canada Eva Pink 32 brazil Rob Pink 25 switzerland Rob Pink 35 russia Jon Pink 27 sweden Rob Black 32 togo Rob Black 13 benin Esther Violet 24 morroco Jon Yellow 36 romania Eva Yellow 35 usa Eva Yellow 38 japan Rob Yellow 34
For Amount > 20, the correct string result for each category would be:
Blue: Jon: norway(23)
Pink: Eva: canada(32), Rob: brazil(25), switzerland(35)
Yellow: Jon: morroco(36), Eva: romania(35), usa(38), Rob: japan(34)
etc.
Any idea how to approach this problem? Don't have a code written as I couldn't figure out where to even start. Was thinking around multidimensional arrays but that's beyond my coding abilities...any help much appreciated