+ Reply to Thread
Results 1 to 10 of 10

Pulling out the latest data with date from the database given.

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Exclamation Pulling out the latest data with date from the database given.

    Hi Guys, i am new to this forum, and can use Excel, but i am not advanced enough to achieve the outcome i want. I have a pretty complex task to process and have got so far but cannot progress.

    What I Want

    Details of the data required given, Sheet NSE and BSE are the source data and Sheet Output is the sheet where i need data.

    Last Traded Price : pull latest last traded price from NSE or BSE tabs. Example : if a "ISIN No" is traded on 1 st Nov 2012 in BSE sheet and 2 nd Nov 12 in NSE sheet, the 2nd Nov price should be in the cell. AND IF BOTH SHEET CONTAINS LATEST DATE PRICE THEN WE SHOULD TAKE NSE PRICE.

    Last Price Date : pull out the date whose price is there in last traded price, which is the latest of NSE and BSE sheets.
    Last Traded Exchange if the ISIN present on both the sheets for the latest day then output should be "BOTH" where as if latest date on NSE sheet then output NSE else BSE.

    Market Cap: pull latest market cap from NSE or BSE tabs. Example : if a "ISIN No" is traded on 1 st Nov 2012 in BSE sheet and 2 nd Nov 12 in NSE sheet, the 2nd Nov Market cap should be in the cell. AND IF BOTH SHEET CONTAINS LATEST DATE MARKET CAP THEN WE SHOULD TAKE NSE MARKET CAP.
    ISIN No : lookup value or the key cell which is present on all sheets.

    PS : File attached.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Pulling out the latest data with date from the database given.

    hi,

    try this..

    Copy of Price%20Lookup%20Logic(1).xlsx

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Pulling out the latest data with date from the database given.

    thanks for the effort sid, the values are not coming correct. attached file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-29-2012
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    53

    Re: Pulling out the latest data with date from the database given.

    hi,

    try this... for the dates, paste special, and then text to columns to DMY format...

    Copy%20of%20Price%20Lookup%20Logic%281%29(1).xlsx

  5. #5
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: Pulling out the latest data with date from the database given.

    djwaz69,

    I was able to solve your issue... I hope.

    Let me know if this is what you were looking for!

    P.S. You will have to retype your dates in column G starting around row 1700 on the NSE tab and around row 3800 on the BSE tab because they are only in a text format and are not recognized by the =DAYS360 formula I used to calculate the most current information.


    Simeon

  6. #6
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Pulling out the latest data with date from the database given.

    Thanks Simeon for the effort, updated values are not correct, request you to kindly recheck the formula, i suppose it would be better of you use index match with given logic or may be with countif logic.

  7. #7
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Pulling out the latest data with date from the database given.

    Hi Simeon

    Please find the attached file with dates excel date format.
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Pulling out the latest data with date from the database given.

    Hi djwaz69,

    Please see attached. Using two helper columns, Column C & D on Sheet3 (which can be hidden if you like) we can get the Price Date for each company by matching ISIN No.s on Sheet3 (Column B) to ISIN No.s (Columns D) on the NSE & BSE sheets.

    Once we have our dates, we can determine which date is greater, thus allowing us to answer your query "Last Traded Price" with the following formula in Column E (Cell E3) on Sheet3:

    Please Login or Register  to view this content.
    which basically says that if C3 is blank, find the ISIN No in B3 (of Sheet3) on the BSE tab and return that Latest Traded Price; if D3 is blank, find the ISIN No in B3 (of Sheet3) on the NSE tab and return that Latest Traded Price; if the NSE date is smaller than older than the BSE date, use the BSE Latest Traded Price; otherwise (ie if the NSE date is equal to or greater than the BSE date) use the NSE Latest Traded Price.

    Please Login or Register  to view this content.
    in Column F (Cell F3) simply selects the maximum ("newest") of the two dates in C3 & D3.

    I note from your post above (#3) that you are suggesting to Simeon, who is trying to assist you, that index/match be used - I will presume so, that that you are familiar with enough with its use, and perhaps just needed a spark that was evading you, ie the dates to work off in the helper columns.

    I hope that I've given you enough there to finish off the speadsheet yourself, but if you need more assistance, just let us know.
    Attached Files Attached Files
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  9. #9
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Pulling out the latest data with date from the database given.

    thanks sidd

  10. #10
    Registered User
    Join Date
    10-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Pulling out the latest data with date from the database given.

    thanks Brendan, it solved my problem, but is it possible without pulling our dates in column C and D.
    I was wondering if its possible with lesser formula because there are other workings too and file size will become heavier. just a request if its possible please help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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