Lookup values from an array on one tab and transferring it to another tab in a specific order

sanimushin

New Member
Joined
Feb 1, 2017
Messages
7
Giving an example because its very hard to explain.

IE:
I have formulas that searches for employee names on sheet 1, A2:A15. All ten rows are locked with those formulas and formatted as "text". Some rows are blank and some have names in it.

I am on sheet 2, and I want to transfer those the values in (sheet 1, A2:A15) to sheet2, B2:B15. A2, A5, and A15 have names in it, while A3:A4, A6:A14 have formulas without any names in it.

How can I transfer those names in sheet 1 A2, A5, A15 in that specific order to sheet 2, B2, B3, B4.
If the orders of the names in A2:A15 changes to different cells A3, A4, A5, A8 instead of A2, A3, A15. Names transferred to sheet 2 should be in the order of B2, B3, B4, B5.

Not sure if this makes any sense at all. Please advise. Thanks!
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
In B1 of Sheet2 enter:

=COUNTIFS(Sheet1!A2:A5,"?*")

In B2 control+shift+enter, not just enter, and copy down:

=IF(ROWS($B$2:B2)>$B$1,"",INDEX(Sheet1!$A$2:$A$15,SMALL(IF(1-(Sheet1!$A$2:$A$15=""),ROW($A$2:$A$15)-ROW($A$2)+1),ROWS($B$2:B2))))
 
Upvote 0
Control+shift+enter: Press down the control and the shift keys at the same time, while you hit the enter key. When done properly, Excel itself puts a pair of { and } around the formula in recognition.
 
Upvote 0

Forum statistics

Threads
1,223,723
Messages
6,174,113
Members
452,544
Latest member
aush

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top