Forum Discussion
Mtumushi
Mar 11, 2021Copper Contributor
Transferring specific numbers from a column to a column
How do I move the specific numbers to a column that correspond to the numbers.. Kindly assist For example 1,2,3,5,9 and they are about 500 and I want to copy for example 9 to column 9..
- Mar 11, 2021
Hi Mtumushi
If I understand the requirement correctly, you need below formula:
=IFERROR(INDEX($A:$A,MATCH(COLUMN(),$A:$A,0),1),"")
Please let me know if it works for you. A sample file is also attached for your reference.
Thanks
Tauqeer
Mtumushi
Mar 12, 2021Copper Contributor
Thank you very much tauqeeracma. It has perfectly work
HansVogelaar
Mar 12, 2021MVP
I'm surprised - tauqeeracma's formula, however nice, does something completely different from what you asked...
- tauqeeracmaMar 12, 2021Iron Contributor
Hi HansVogelaar
Your VBA code was excellent and exactly producing the desired result but @Mtumushi was interested in non-VBA solution and he wanted the solution directly in his file through email.
Thanks
Tauqeer
- HansVogelaarMar 12, 2021MVP
Ah, OK.
- MtumushiMar 12, 2021Copper Contributor
HansVogelaar I had no idea what it was... Thank you.. You really assisted