Pull in data from other cells without duplication within a range

schrieber

New Member
Joined
Jun 13, 2023
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Goal: Cell range B3 through L3 (in green) to pull in the first 4 digits only of the project names that reside in all of the Project Name columns (in yellow: cells A9 through A19 and D9 through D19, and etc.), with 1 project name per cell without duplicates. If possible, do not pull in Project Name that is 9999.

The project numbers that will show in row 3 (in green) do not have to be in any particular order.

Each month the project names and their order change on the spreadsheet but will reside within the yellow cells.

Thanks in advance for any help provided and please let me know if I haven't provided enough information.
 

Attachments

  • Excel thread.jpg
    Excel thread.jpg
    62 KB · Views: 8

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
For the future BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with. (Then you won't get such small 'rubbish' sample data like mine. ;)

range B3 through L3 (in green) to pull in
I take that to mean that you only want a maximum of 11 values even if there might be more.

23 08 17.xlsm
ABCDEFGHIJKLM
342514283438143864432111122223333444455556666
4
5
6
7
8
94251-aa4251-vv3333-a6666-b
104283-v4283-z4444-b7777-b
114381-jgh4432-a5555-b
124386-lll1111-a9999-v
134432-ff2222-a
149999-dd
15
Project Numbers
Cell Formulas
RangeFormula
B3:L3B3=LET(d,LEFT(TOCOL(CHOOSECOLS(A9:M19,1,4,7,10,13),1,1),4),TRANSPOSE(TAKE(UNIQUE(FILTER(d,LEFT(d,4)<>"9999","")),11)))
Dynamic array formulas.
 
Upvote 0
This works perfectly. Thank you!

I have now found that in the data that may get pulled in from time to time within A:9:M19 that a cell may also have a 0 (zero) or the word DAILY (For instance in the example above A:15 might have 0 and/or G:13 may have DAILY. I didn't show that in my original question to you (sorry!) Can those be excluded, as well?
 
Upvote 0
Try this. It excludes any text (not just "DAILY") and 0

23 08 17.xlsm
ABCDEFGHIJKLM
342514283438143864432111122223333444455556666
4
5
6
7
8
94251-aa4251-vv3333-a6666-b
104283-v4283-z4444-b7777-b
114381-jgh4432-a5555-b
124386-lll1111-a9999-v
134432-ff2222-a
149999-ddDAILY
150
16ABC
17
Project Numbers (2)
Cell Formulas
RangeFormula
B3:L3B3=LET(d,LEFT(TOCOL(CHOOSECOLS(A9:M19,1,4,7,10,13),1,1),4),TRANSPOSE(TAKE(UNIQUE(FILTER(d,(LEFT(d,4)<>"9999")*(d<>"0")*ISNUMBER(d+0),"")),11)))
Dynamic array formulas.
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,398
Messages
6,124,688
Members
449,179
Latest member
kfhw720

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