+ Reply to Thread
Results 1 to 10 of 10

Lookup return occurrence value 1st,2nd and 3rd

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Lookup return occurrence value 1st,2nd and 3rd

    Hi Experts Good Morning,

    How do return lookup value Occurrence 1st,2nd and 3rd corresponding to the range and date against from sheet to sheet.

    Multiple occurrences of the Lookup value, the formulas searches the first occurrence of the Lookup value, and returns the corresponding value in the same row from another column.

    Herewith attached file.Please your suggestion.

    DATA:

    DISPATCH **** NAME**** SL.NO

    11/01/2016**** JALA******11899
    11/01/2016**** GOA******11900
    11/01/2016**** GURG**** 11905
    11/01/2016**** MUMB****11907
    11/01/2016**** GOA***** 11913
    11/01/2016**** GURG**** 11914

    13/01/2016**** AHME**** 11939
    13/01/2016**** JAIP***** 11951
    13/01/2016**** BANG**** 11948
    13/01/2016**** JAIP***** 11952

    14/01/2016**** CHEN**** 11959
    14/01/2016**** BANG**** 11958
    14/01/2016**** KOLK*****11966
    14/01/2016**** KOLK*****11969
    14/01/2016**** CHEN**** 11972


    REQUIRED FORMAT:

    NAME**** BILLREF DISPATCH DATE SL.NO
    GURG**** 5241 *****11/01/2016 ****11914
    GOA *****4394*****11/01/2016 ****11900
    GOA *****4368 *****11/01/2016 ****11900
    GOA *****4367 *****11/01/2016 ****11900
    GURG*****4328**** 11/01/2016 ****11905
    GURG*****4327**** 11/01/2016 ****11905
    MUMB*****4305****11/01/2016 ****11907
    MUMB*****4304****11/01/2016 ****11907
    MUMB*****4303****11/01/2016 ****11907
    MUMB*****4302****11/01/2016 ****11907
    JALA ******4301*** 11/01/2016 ****11899
    JALA ******4300*** 11/01/2016 ****11899
    JALA ******4299*** 11/01/2016 ****11899
    JALA ******4294*** 11/01/2016 ****11899
    GOA ******4212*** 11/01/2016 ****11913
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Lookup return occurrence value 1st,2nd and 3rd

    It's really unclear what you want, and there appears to be more data in your required format sheet than in your source data. How is it possible to know the BILL REF?

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

    Re: Lookup return occurrence value 1st,2nd and 3rd

    Can't you simply achieve this using DATA/SORT
    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

  4. #4
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Lookup return occurrence value 1st,2nd and 3rd

    Thank you so much for your reply Mr.Glenn Kennedy and brokenbiscuits.

    brokenbiscuits:

    Working Process.

    * Our company is running all over the India.Daily dispatch's prepared on Invoice Number and Date against of corresponding to the Branch.

    But dispatch annexure prepared based on branch.


    * First I have apply the filter mode to select the blanks from column C.Here after I have choose the branch and select the Invoice Number against to update

    the details column D.its based on Dispatch Annexure. This is our routine work.


    *Do not find unique number in my data.so that I have enter to manually Column C and D.Its based on to update the details form rest of column H and I against corresponding to the Branch.

    * Some time single branch against multiple dispatches made its happens based on Invoice Number against of dispatch's.Do not fix for the delimit of invoices.

    its means some times single invoices are covered 50 Boxes,Some times a bunch of Invoices are covered 50 Boxes corresponding to the Branch.

    Glenn Kennedy

    Data short an ascending order.I had a lot of records in excel more than 40000 to 50000 in single month.data sort an ascending to face very difficult.

    Here with file attached please help me.its very difficult to face manually enter if your suggestion bring to help me a lot and reduce our manual work.

    please ref both sheets Date and Name ranges against return sl.no.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Lookup return occurrence value 1st,2nd and 3rd

    Still really struggling to make sense of this.

    Are you just wanting to auto-populate column D? Even then, I'm not sure this will be possible as there are some SLs for the same date with the same name - 11905 and 11914 for instance - how would you know which SL was correct?

  6. #6
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Lookup return occurrence value 1st,2nd and 3rd

    thank you so much to consider my query Mr.brokenbiscuits .

    some time two are three dispatch made in single day against one branch. Each and every dispatch i have allocate serial number against branch and date.

    11905 1 st dispatch in the morning and send dispatch 11914 evening corresponding to the range GURG against date 11/01/2016.

  7. #7
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Lookup return occurrence value 1st,2nd and 3rd

    Thanks for clarifying that slightly - but as far as I can tell there's still no way to know which SL no you want to automatically populate in column D without further information in the DISPATCH ANNEXURE sheet.

  8. #8
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Lookup return occurrence value 1st,2nd and 3rd

    please give some time i have change my required format and try to better explanation.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Lookup return occurrence value 1st,2nd and 3rd

    Just taking a guess here. I don't know where you are getting the BILL REF values from. I have provided 2 solutions for extracting your data to the DISPATCH worksheet.
    The first one is to use a Pivot Table...no formulae required.
    The second solution is to insert a column A and number the entries in what would then be column B with this formula entered in 'DISPATCH ANNEXURE'!A2 and filled down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In column A of the DISPATCH worksheet enter consecutive numbers in A2 starting at 1 to as far as necessary.
    In DISPATCH!B2 enter this formula and fill across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  10. #10
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Re: Lookup return occurrence value 1st,2nd and 3rd

    thansk you so much for your reply newdoverman sir.

    i don't have a system my mobile not supported for Excel.i have check the file morning.here after please give me suggestion.

+ 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] Lookup value for occurrence in 5 columns and return value from 6th column in the same row.
    By irishprince in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-06-2015, 09:50 AM
  2. Replies: 2
    Last Post: 02-06-2015, 11:23 AM
  3. [SOLVED] Lookup nth occurrence
    By Blake 7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2013, 06:04 PM
  4. [SOLVED] Lookup value that is the2nd or 3rd occurrence
    By ssword in forum Excel General
    Replies: 1
    Last Post: 05-25-2012, 11:43 AM
  5. Return First Occurrence
    By ComradeBT in forum Excel General
    Replies: 12
    Last Post: 07-29-2010, 03:15 PM
  6. vlookup to return the nth occurrence
    By niyrho in forum Excel General
    Replies: 2
    Last Post: 07-29-2008, 02:53 PM
  7. [SOLVED] V Lookup 2nd Occurrence
    By Rodney in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-27-2005, 01:06 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