Hey all,
I've been trying to get a formula working based on several examples I've seen elsewhere but I'm getting no dice. Here's the situation:
I have a table I'm trying to fill in with data that is coming from another tab. The original data is a list with two columns - one has ID numbers (mixed alphanumeric) the other is a list of accounts. The table I'm filling has the ID numbers vertically, and then has the accounts filled in horizontally to the right of the ID numbers. My table I'm filling is located from B2:M31, the data I'm pulling is located from O:P (IDs in O, accounts in P) There is also a row of numbers from A2:A31 that is not correlated to the data I'm trying to compare (it's to keep track of sorting, although if I can get this formula working I won't need it!)
To fill this previously, I've just been copy/pasting with a transpose paste. I'd like to get it more efficient, however. Due to this, I've been messing with some INDEX functions. Now, I will admit I haven't messed with these much in the past, so I'm a bit of a newbie in this area. However, I seem to have gotten it working for some ID numbers, but not others, and its driving me nuts. Here is the two formulas I've tried:
=INDEX($P$2:$P$2000, SMALL(IF($B3=$O$2:$O$2000, ROW($O$2:$O$2000)-ROW($O$2)+1), COLUMN($A1)))
This one works for the first ID, however I have to manually change the '+1' in the formula to a +2, +3, etc. as it goes horizontally. This wouldn't be that big of an issue, however once I move the formula down a row to the next ID (referencing cell $B4) it starts pulling wrong data (still pulling accounts from the ID located at $B3 - even though it's updated)
The other formula I tried was:
=INDEX($P$2:$P$2000, SMALL(IF($B4=$O$2:$O$2000, ROW($O$2:$O$2000)-MIN(ROW($O$2:$O$2000))+1, ""), COLUMN($A1)))
This works for the first ID (again, manually changing the +1 as it goes horizontally), however throws VALUE errors as soon as I try to drag it down to the next ID.
Any help would be appreciated. I unfortunately cannot upload any files for comparison as I'm on work internet, I hope my explanation was clear enough.
I've been trying to get a formula working based on several examples I've seen elsewhere but I'm getting no dice. Here's the situation:
I have a table I'm trying to fill in with data that is coming from another tab. The original data is a list with two columns - one has ID numbers (mixed alphanumeric) the other is a list of accounts. The table I'm filling has the ID numbers vertically, and then has the accounts filled in horizontally to the right of the ID numbers. My table I'm filling is located from B2:M31, the data I'm pulling is located from O:P (IDs in O, accounts in P) There is also a row of numbers from A2:A31 that is not correlated to the data I'm trying to compare (it's to keep track of sorting, although if I can get this formula working I won't need it!)
To fill this previously, I've just been copy/pasting with a transpose paste. I'd like to get it more efficient, however. Due to this, I've been messing with some INDEX functions. Now, I will admit I haven't messed with these much in the past, so I'm a bit of a newbie in this area. However, I seem to have gotten it working for some ID numbers, but not others, and its driving me nuts. Here is the two formulas I've tried:
=INDEX($P$2:$P$2000, SMALL(IF($B3=$O$2:$O$2000, ROW($O$2:$O$2000)-ROW($O$2)+1), COLUMN($A1)))
This one works for the first ID, however I have to manually change the '+1' in the formula to a +2, +3, etc. as it goes horizontally. This wouldn't be that big of an issue, however once I move the formula down a row to the next ID (referencing cell $B4) it starts pulling wrong data (still pulling accounts from the ID located at $B3 - even though it's updated)
The other formula I tried was:
=INDEX($P$2:$P$2000, SMALL(IF($B4=$O$2:$O$2000, ROW($O$2:$O$2000)-MIN(ROW($O$2:$O$2000))+1, ""), COLUMN($A1)))
This works for the first ID (again, manually changing the +1 as it goes horizontally), however throws VALUE errors as soon as I try to drag it down to the next ID.
Any help would be appreciated. I unfortunately cannot upload any files for comparison as I'm on work internet, I hope my explanation was clear enough.