+ Reply to Thread
Results 1 to 11 of 11

Lookup formula required?

Hybrid View

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Lookup formula required?

    Okay, I'd be grateful if someone could help me with a formula to solve the problem below:

    I have a table with in one tab where I want to put a date in cell A1, in the cells to the right on that row (B1, C1, D1, etc) I want a formula that will search the date that I've inserted in cell A1, then look for this date in an array of dates elsewhere that are organised as a column (lets say the array of dates starts in cell A11 (continues in A12, A13, A1 etc) and then insert the consecutive dates on from the first date.

    A simple vlookup would normally suffice here, but the date that I insert in A1 could be anywhere in the lookup table.

    (please ignore the attachment)

    Thanks in advance.
    Attached Images Attached Images

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Lookup formula required?

    Instead of picture attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

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

    Re: Lookup formula required?

    Attach a sample workbook - NOT a picture of part of one.

    Pete

  4. #4
    Registered User
    Join Date
    02-19-2014
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Lookup formula required?

    Ok, I've attached a simple excel workbook that should illustrate my problem.
    Attached Files Attached Files

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Lookup formula required?

    In B1 Cell

    =IFERROR(SMALL($A$10:$A$39,COUNTIF($A$10:$A$39,"<="&$A$1)+COLUMN(A:A)),"")

    Drag it to right...

  6. #6
    Registered User
    Join Date
    02-19-2014
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Lookup formula required?

    Sixthsense, That works great when the two tables are on the same tab, but I need to have the two tables on seperate tabs & from your formula I can't fathom how to change the formula to still make it work.

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Lookup formula required?

    Just replace the ranges by selecting the ranges using the mouse.

  8. #8
    Registered User
    Join Date
    02-19-2014
    Location
    Surrey, UK
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Lookup formula required?

    Aghh, sorry, still banging my head here. I've attached the spreadsheet that's stripped of sensitive data. In Cell E8 on tab 'EV dashboard' I have inserted my required start date, I have attempted to modify the formula in cell F8 & array. The data range that I want it to search on is G4:G9 on tab 'Periods'.
    Attached Files Attached Files

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,789

    Re: Lookup formula required?

    In F8 Cell you used the below formula in which you mentioned COLUMN(F:F), but it should be COLUMN(A:A)

    Your Current Error Formula on F8 Cell

    =IFERROR(SMALL(Periods!$G$4:$G$94,COUNTIF(Periods!$G$4:$G$94,"<="&$E$8)+COLUMN(F:F)),"")

    Corrected Formula for F8 Cell

    =IFERROR(SMALL(Periods!$G$4:$G$94,COUNTIF(Periods!$G$4:$G$94,"<="&$E$8)+COLUMN(A:A)),"")

+ 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] Formula Required to Lookup and Match Multiple Criteria
    By The_Snook in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2014, 10:59 AM
  2. Lookup / count formula help required
    By willsm in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-19-2013, 08:35 AM
  3. [SOLVED] Need help with some kind of LOOKUP formula to generate a list of required documents
    By postgre in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2013, 11:54 AM
  4. [SOLVED] Lookup formula required to search for two criteria and return result
    By dave1983 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-12-2012, 03:29 PM
  5. Lookup and Match Formula required
    By pauldaddyadams in forum Excel General
    Replies: 15
    Last Post: 09-12-2012, 12:05 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