+ Reply to Thread
Results 1 to 19 of 19

Dynamic Lookup code

  1. #1
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Dynamic Lookup code

    I am setting an internal client influencer tracker and am trying to create a 'main sheet' so i can see the information i need to extract at any given time.

    I am trying to pull through the below on the main sheet but am stuck how to best do this as the information i need is dependent on the criteria from different worksheets.

    I have attached the worksheet
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    There was no start date for Two/Post 1 so i added one.

    Use formulae like this one:

    =INDEX(INDIRECT("'"&$B3&"'!E:E"),MATCH($C3,INDIRECT("'"&$B3&"'!C:C"),0))

    The others are in the file.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    Thanks. Some of the posts will have multiple influecners for example under tab Akzonobel 'Story 3' has various influencers. Is there a way all of them can be listed when i select 'Story 3'

    Also, on columns H-L on the 'main sheet' would it be possible to get the Yes and No pulling through too so i can see which platform they are working on?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    Possibly, but. The ease of doing so depends on the Excel PRODUCT that you are using. Excel 2017 does NOT exist. Please check and tell us what you ARE using. the lastest ones are O365, Excel 2021, Excel 2019....

    or is Excel 2017 a Mac version??

  5. #5
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    I am using excel 2016

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    OK . Kindly amend your profile to show Excel 2016.

    Is a VBA-based solution OK with you?7

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    Also, what is the maximum number of influencers for a single post?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,856

    Re: Dynamic Lookup code

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new, I shall do it for you this time: https://www.mrexcel.com/board/thread...heets.1256203/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    The most would it would ever be would be 20
    Attached Files Attached Files

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    No. My alternative to VBA won't work. If you want them all in one cell:

    1. VBA.
    2. Upgrade to O365 (preferably) or Excel 2021.

    BUT, you haven't told us how you want the results to be presented. So how do you want them to look?

  11. #11
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    The results don't need to be in one cell. They can be as a list. So if Story 3 was selected under Akzonobel then it would appear as the attached
    Attached Images Attached Images

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,856

    Re: Dynamic Lookup code

    Did you read and understand post #8?

    You still need to update your forum profile to 2016, please.

  13. #13
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    No sorry i don't understand as only joined this forum today.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    Try it now. But I see a further complication. It seems to be possible to select TWO storys in the same cell. Is that intentional? If so, this complicates everything enormously...
    Attached Files Attached Files

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,856

    Re: Dynamic Lookup code

    Quote Originally Posted by abz2786 View Post
    No sorry i don't understand as only joined this forum today.
    See below and then update your profile, please.
    Attached Images Attached Images

  16. #16
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    It seems to be working ok as i need.

    Would it be possible to have a formula that will show all the 'Live' campaigns for a particular client. For example when i select Akzonobel from a dropdown cell C8 shows a list of 'live' campaigns - in this instance Story 3 and Story 4.
    Attached Files Attached Files

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,856

    Re: Dynamic Lookup code

    Is this the same query or a new pone? If it's a new question, then you need to mark this thread as SOLVED and start a new one with a suitable title.

  18. #18
    Registered User
    Join Date
    03-27-2024
    Location
    london
    MS-Off Ver
    2016
    Posts
    8

    Re: Dynamic Lookup code

    same query

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Dynamic Lookup code

    Try:

    =IFERROR(INDEX(INDIRECT("'"&$B$8&"'!C:C"),AGGREGATE(15,6,ROW(INDIRECT("'"&$B$8&"'!C3:C100"))/((INDIRECT("'"&$B$8&"'!F3:F100")>=TODAY())*(COUNTIF(C$7:C7,INDIRECT("'"&$B$8&"'!C3:C100"))=0)),1)),"")

    copied down.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] modify code to make i is dynamic range in code
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-08-2023, 03:40 PM
  2. Dynamic Lookup
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 08-24-2015, 08:27 AM
  3. [SOLVED] My code is not dynamic; it has a pre-defined range. Possible to change code?
    By mick0005 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-20-2015, 10:23 PM
  4. [SOLVED] 2 Way Lookup with a dynamic row
    By greenmonke in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-21-2014, 05:17 PM
  5. [SOLVED] Dynamic Lookup
    By nathanhamilton82 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2012, 04:45 PM
  6. [SOLVED] dynamic lookup
    By Giantrobot in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2006, 07:15 PM
  7. [SOLVED] using LOOKUP instead of IF on dynamic row
    By Jay C in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-08-2005, 08:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1