Dynamically populate column values from one sheet to another with conditions
Hi all,
I am trying to populate a column of project codes from the Master Project List to a metric sheet. All the project codes are unique, but from what I have read, to keep it updating dynamically I have to have a Unique number (primary column). I was able to get this to work with this formula:
=IFERROR(INDEX(DISTINCT({Master Project List - Project Code}), [Primary Column]@row), "")
However, there are almost 800 project codes. I'm already having a problem with too many cross-Sheet references on the Metrics sheet. So, I only want the ones that are marked as Active. I tried the formula below, but can't get it to work.
=IF({Master Project List - Active} "Active", INDEX(DISTINCT({Master Project List - Project Code}), [Primary Column]@row), "")
Best Answer
-
You'll need a COLLECT function like so:
=IFERROR(INDEX(DISTINCT(COLLECT({Master Project List - Project Code}, {Master Project List - Active}, @cell = "Active")), [Primary Column]@row), "")
Is there a particular reason you are pulling into a metrics sheet as opposed to a report?
Answers
-
You'll need a COLLECT function like so:
=IFERROR(INDEX(DISTINCT(COLLECT({Master Project List - Project Code}, {Master Project List - Active}, @cell = "Active")), [Primary Column]@row), "")
Is there a particular reason you are pulling into a metrics sheet as opposed to a report?
-
Hi Paul,
Hmmm, that formula isn't working. it gives me an "Incorrect Argument" error.
I am not using a report because there are a lot of calculations and cross-cell references needed in the metrics sheet. It is only pulling the Project code from the Master Project List.
-
Double check the ranges selected for the cross sheet references. They should all be from the same sheet and you should select them all by clicking on the appropriate column header.
-
-
Thanks Paul!! I played around a little longer and got it to work! Still not sure why it wasn't working before, but it is now! Again, Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!