Dear Experts
I want search a in the column a and paste the corresponding values in the next colum b and paste in a row alternately. please find the image above and help me.
thanks in advance.
6.png
Regards
Ravi
Dear Experts
I want search a in the column a and paste the corresponding values in the next colum b and paste in a row alternately. please find the image above and help me.
thanks in advance.
6.png
Regards
Ravi
Try this
Open up the VBA editor by hitting ALT F11![]()
Please Login or Register to view this content.
Insert a new module by hitting Insert - Module
Paste the macro into the empty sheet
Hit ALT F11 to get back to the worksheet.
Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
Martin
Hi, a formula approach using array INDEX
in E2 to be confirmed with control+shift+enter before to be copied across
=IFERROR(INDEX($B$2:$B$1000,SMALL(IF($A$2:$A$1000=$D2,ROW($A$2:$A$1000)-1),COLUMN(B$1)/(2*MOD(COLUMN(A$1),2)))),"")
Regards
Last edited by canapone; 10-11-2014 at 10:17 AM.
-----------------------------------------------------
At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.
Please, mark your thread [SOLVED] if you received your answer.
Your image is not accessible. It would be better to upload an Excel workbook that demonstrates the problem.
Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and use the paperclip icon to open the upload window.
View Pic
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks