+ Reply to Thread
Results 1 to 2 of 2

Excel VB help needed to fetch data from database sheet

  1. #1
    Registered User
    Join Date
    03-29-2018
    Location
    india
    MS-Off Ver
    2007
    Posts
    1

    Excel VB help needed to fetch data from database sheet

    Hi,

    I have a worksheet. There are two sheets inside it. one is portfolio and second is summery. in database sheet I have list of clients. In a summery sheet I want appear portfolio sheet data in a summery sheet format.
    what i am looking for??

    1. in a summery sheet I will select only client name (cell marked in wooden color). Once I select client name according to that all fields marked in yellow will fetch data from portfolio sheet. I tried to do it with vlookup formula and got success to fetch address, bank details cell data. But when I come to downside where there are multiple data rows in portfolio sheet, there only first line is showing an if i copy/paste the same formula to next line than same data is coming.

    please help.

    Sample worksheet is attached.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: Excel VB help needed to fetch data from database sheet

    SUMMARY (not Summery)

    you need to write code, to fill in all the fields,after the lookup.

    upon combo box update, run macro to:
    get the clientid
    Find client in Portfolio, row (r)
    cell by cell , write data to Summary sheet....
    summary!k5 = portfolio!X(r) 'address
    summary!Q4 = portfolio!B(r) '1st holder
    etc....

    or make lots of nested VLOOKUPS.

+ 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. macro to loop through data sheet , fetch 8 rows at a time and put in new sheet
    By nyree in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-04-2015, 01:46 AM
  2. How To fetch google sheet data into excel
    By manoj_nn in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-15-2015, 07:46 AM
  3. Fetch data from database matching two conditions
    By Krishnab4u in forum Excel General
    Replies: 1
    Last Post: 04-03-2014, 07:18 AM
  4. [SOLVED] How to fetch data from one sheet in excel and insert into another sheet using VB
    By gokul1242 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2012, 11:38 AM
  5. Replies: 1
    Last Post: 12-22-2010, 09:08 AM
  6. Fetch weekly data from Access database
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2010, 09:52 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