+ Reply to Thread
Results 1 to 22 of 22

Vlookup help

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Vlookup help

    Hello I am new to the forum, I have learn so much with the different posts I have read here.
    I am using this formula:

    VLOOKUP((B28),CHOOSE({1,2},H4:H14,Pilot_Name),2,0)

    It works very good, it does exactly what I need it to do, but I have to change the column (H4:H14) manually for the next day.
    I was wondering if there is a way to make this same formula change from column H4:H14 to the next column to the right I4:I14 which is the next day.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Vlookup help

    Try this:

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


    and drag to the right. The H should turn into an I and then J, etc.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    Thank you very much it does change the column, but I need t copy and paste that cell to the adjacent every time, my goal is that the cell where the VLOOKUP formula is don't change, but the criteria of where to look changes according to the day. If i did it correctly you shouldhave the attachement:
    lets say the formula is on cell B17, I cannot change it from here, my goal is to have it look at cell A1 which contains the formula "TODAY()" from here it should go to row where the same date as today is and look down that column(H4:H14) now the column should change to next on the right based that cell A1 will change every day. Once again thank you so much.
    Attached Files Attached Files
    Last edited by rwdriver; 08-07-2012 at 04:25 AM.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Vlookup help

    Quick thoughts because I have to go right now.

    1) Since today is volatile, the results will change each day. IF this is fine then no problem, if not then you are probably better off with vba to copy/ paste the value to the cell each day.

    2) You will probably need Index/ Match but can't really say until I see at least a dummy workbook showing what you are after exactly.

  5. #5
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    Ii took me a little bit of time to figure how to attach the workbook, it should be on my previous response, I will attach it again just in case.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    I changed the green cells.

    You work with merged cells. I advice you not to work with merged cells.

    You get in trouble sooner or later.

    See the example.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  7. #7
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    Thank you very much that is exactly what I need.Owesome

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    Glad I could help. Thanks for the reply.

    If the question is solved, will you mark your question as solved?

    If you have (other) questions, on this item, just ask.

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Vlookup help

    @ rwdriver

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  10. #10
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    oeldere, I was running my spread sheet it works very good until you get to the doble letter column, when the formula adds 63+24+3 which would be character 90 (Z) is there a way to have it also include the doble letters or even triple columns?

    ---------- Post added at 04:57 AM ---------- Previous post was at 04:55 AM ----------

    Sorry for that, I was looking where to marked solved thanks for the input I will make sure I do it next time. thanks

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    That's a good question!

    I will look for an answer.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    I changed it.

    It works now till de date in LZ3 (is 2 july 2013)

    Do you have questions on this item, just ask.

    Please reply if this what you're up to.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    Thanks oeldere, for some reason the change you made is giving me a reference error, it may be the refrence to the table you made, any how if I can get at least to column SZ, which would be like Jan 2015, I was thinking on the first formula you sent, if the date is >24<=31 then make it combine the characters (65=A 65&65=AA) I wrote 65 but should be the cell where the number is stored. I have been trying with IF, AND OR functions but it would have a very long formula to combine A with B, C,D ..... and then do the same with B combined with A, B, C .... and so forth until SZ, that would be just too much. I consider intermediate level knowledg with the formulas but I do not know anything on VBA,
    Last edited by rwdriver; 08-08-2012 at 08:35 AM.

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    reaction 1

    I don't know why, but indead the file is corrupt.

    I be back soon.

    reaction 2
    I added the text below.

    The problem seems to be that match, can match only 64 column.

    I will look at www if this is a know problem.

    I think it's strange i got no failure in the first place.

    I will report the result.

    reaction 3
    I don't think the above is the problem (any more).

    Please reply back if this one will do.
    Attached Files Attached Files
    Last edited by oeldere; 08-08-2012 at 09:33 AM.

  15. #15
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup help

    how do you get to lz? in a pre 2007 workbook?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    @Martindwilson

    It's excel 2007 (not 2003).

    See the fil-extention in #14

    I had posted it as excel 2003 file see the file (extension) in #12.

    Thanks for the question.

  17. #17
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup help

    Try this formula in B17

    =VLOOKUP((B28),CHOOSE({1,2},INDEX($G$4:$BFQ$14,,MATCH(Today,$G$2:$BFQ$2,0)),Pilot_Name),2,0)

    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  18. #18
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    oelder I am using excel 2010 could that be the problem, it shouldn't!!!
    I am still working to find a solution, keep you posted, thanks for the help.

    ---------- Post added at 06:05 AM ---------- Previous post was at 05:57 AM ----------

    chemistb I tried the formula but is giving an error on the INDEX array segment, don't really understand the error, may as oeldere was saying the file maybe corrup, I will re-do it again and posted as soon as I get done, thanks though for the help

  19. #19
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    Did you tried the solution in #14?

    For me it worked.

    I use Excel 2007, but i suppose it would be also usefull in excel 2010.

  20. #20
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Vlookup help

    Here is my formula in your spreadsheet. Perhaps you left out a comma in your INDEX
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    08-06-2012
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Vlookup help

    C hemistb thas so much your formula works perfect, my ariginal file was corrupted, thank you so much I believe it is what I needed,

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup help

    @rwdriver.

    Maybe you can also reply on my post #19.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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