+ Reply to Thread
Results 1 to 11 of 11

Populate data based on selection from dropdown

  1. #1
    Registered User
    Join Date
    11-28-2017
    Location
    Jeddah
    MS-Off Ver
    2010
    Posts
    23

    Post Populate data based on selection from dropdown

    Dear All ,

    Hope everyone good ... Just a small help from Seniors

    I am bringing Data from sheet named "estimation" to the profit and loss i was able to bring Sales and Project expense by Sumproduct and index help now i need to bring all invoices numbers from estimation when i select JEDDAH OR RIYADH FROM Cell "B3" it should give me the invoices number only by checking in the ESTIMATION SHEET COLUMN "J" Like when i select jeddah it should show me these invoices starting from B8 to downward i have put there manually for now but i want this to obtain automatically from ESTIMATION SHEET.
    Highly appreciate your help
    Thank you
    Regards
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Populate data based on selection from dropdown

    Solution presented:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Populate data based on selection from dropdown

    Quote Originally Posted by fslrulez View Post
    ... Just a small help from Seniors ...
    Makes me feel old ...

    In problems like these I like to set up a formula in the main data sheet to identify the records which match the criteria, and then bring those records across to the summary sheet. So, in the Estimation sheet you can use this formula in cell R5:

    =IF(J5='Profit Loss'!$B$3,MAX(R$4:R4)+1,"-")

    Copy this down the column as far as you like, so that you can add more data as necessary - the hyphens will show where the formula is active.

    Then in the PROFIT LOSS sheet you can use this formula in B8:

    =IF(ROWS($1:1)>MAX(Estimation!$R:$R),"",INDEX(Estimation!B:B,MATCH(ROWS($1:1),Estimation!$R:$R,0)))

    Copy this across to E8, and then copy those formulae down as far as you need to (until you get blanks).

    I'm not sure, but you may need to use semicolons ( ; ) instead of commas ( , ) in the formulae, depending on your regional settings.

    Then you can just change the drop-down in B3:I5 and the display will adjust automatically.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Populate data based on selection from dropdown

    Another possibility is with Power Query, an Excel tool that you will need to install in Excel 2010, but worth it!
    In this solution you don't need to worry with helper column or the size of the table, Power Query will adjust if for you and will show no formulas, just data!

    How to Install Power Query in Excel 2010 or 2013 for Windows

    Note: Cells D1:D2 can't be changed.
    Attached Files Attached Files

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Populate data based on selection from dropdown

    macro triggered by dropdown choice.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  6. #6
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Populate data based on selection from dropdown

    Delete this, pls.

  7. #7
    Registered User
    Join Date
    11-28-2017
    Location
    Jeddah
    MS-Off Ver
    2010
    Posts
    23

    Re: Populate data based on selection from dropdown

    Thank you so much everyone good to see alot of people coming for help <3
    @pete uk sorry brother was'nt meant to make you feel old i put senior in term of respect having more knowledge then me and thank you trochan and dejunqueira

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: Populate data based on selection from dropdown

    You're welcome - thanks for the rep.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

  9. #9
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Populate data based on selection from dropdown

    Quote Originally Posted by fslrulez View Post
    Thank you so much everyone good to see alot of people coming for help <3
    @pete uk sorry brother was'nt meant to make you feel old i put senior in term of respect having more knowledge then me and thank you trochan and dejunqueira
    Happy to help and good luck.

  10. #10
    Registered User
    Join Date
    11-28-2017
    Location
    Jeddah
    MS-Off Ver
    2010
    Posts
    23

    Re: Populate data based on selection from dropdown

    brother i have 2 question in your formula if i may ask

    {=IF(ISERR(INDEX(Estimation!$I$5:$I$35,AGGREGATE(15,6,(1/($B$3=Estimation!$J$5:$J$35))*(ROW(Estimation!$I$5:$I$35)-4),ROW(D1)))),"",INDEX(Estimation!$I$5:$I$35,AGGREGATE(15,6,(1/($B$3=Estimation!$J$5:$J$35))*(ROW(Estimation!$I$5:$I$35)-4),ROW(A1))))}

    Q1 - In this formula what does the last part do ,ROW(A1)))
    2ND- The starting point Curly bracket which represent ARRAY i tried so hard but never understood the depth of this array meaning that when we have to use that because if you use the formula without array it will still work but you put it anyway ... please can you help me learn why it was important to be there {

  11. #11
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Populate data based on selection from dropdown

    Quote Originally Posted by fslrulez View Post
    brother i have 2 question in your formula if i may ask
    {=IF(ISERR(INDEX(Estimation!$I$5:$I$35,AGGREGATE(15,6,(1/($B$3=Estimation!$J$5:$J$35))*(ROW(Estimation!$I$5:$I$35)-4),ROW(D1)))),"",INDEX(Estimation!$I$5:$I$35,AGGREGATE(15,6,(1/($B$3=Estimation!$J$5:$J$35))*(ROW(Estimation!$I$5:$I$35)-4),ROW(A1))))}
    Q1 - In this formula what does the last part do ,ROW(A1)))
    2ND- The starting point Curly bracket which represent ARRAY i tried so hard but never understood the depth of this array meaning that when we have to use that because if you use the formula without array it will still work but you put it anyway ... please can you help me learn why it was important to be there {
    Q1 - I creates a sequence of numbers from 1 to 'n' lines as you go down with the formula, it helps AGGREGATE() to select the first line, the second and so on.

    2nd - I didn't use the brackets '{}', may be Excel did to import to your version. The new Excel 365 is a great playground for array formulas, we can do many calculations using just one cell, very fun! And we don't need to use brackets.
    You normally use it for a formula to have the array behavior, I never liked it very much, it expands the result of a (cell) formula to some extent in latter versions, not as good as now.

    If possible try to upgrade to Excel 365, many new functions to work with big data.

+ 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. Auto-populate column with matrix data based on dropdown selection
    By MrLemons in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-05-2021, 10:44 AM
  2. [SOLVED] Populate List based on Dropdown selection
    By PaterPen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-02-2017, 03:04 PM
  3. Replies: 8
    Last Post: 05-24-2017, 06:35 AM
  4. [SOLVED] Use VBA to populate Range based on Dropdown date selection
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-09-2015, 08:58 AM
  5. [SOLVED] Populate column based on selection from a dropdown
    By dbwaste04 in forum Excel General
    Replies: 5
    Last Post: 11-01-2014, 04:23 PM
  6. Replies: 6
    Last Post: 05-31-2013, 11:17 AM
  7. Auto-populate fields based on selection from dropdown?
    By Aswert in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-20-2009, 03:26 PM

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