+ Reply to Thread
Results 1 to 18 of 18

Vlookup value Offset

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Vlookup value Offset

    Hi,

    Not sure if there is the way, but ill try the luck

    What i want to do is =VLOOKUP(1,A5:E1500,2,0) the lookup value in this case "1" to offset to up one row or two, up to 7 lets say and extract the data from the row.

    dfdfdfdf.JPG

    Not sure if its possible to do or maybe is there other way not using vlookup, would be really helpfull.

    Thanks

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Vlookup value Offset

    VLOOKUP has no offset.
    One line of info does not test data make.

    In words, what are you trying to do?

    Attach a sample spreadsheet with expected results, remove any sensitive data, create a mockup example if necessary.
    Use the Go Advanced option at the bottom of the page then scroll down to Manage Attachments as the "paperclip" method does not work on this forum.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    Im sorry maybe wasn't clear what I want to do

    From column "B" up to "K" for same supplier the information will be the same and in "L:O" will be different. So if in column "A" I will put "1" the data will be transferred from sheet1 to sheet2 in relative cells and after that printed, but for each different PO* number should be printed separately with Supplier information, meaning that in column "A" the "1" moves down until reaches the next supplier and all the same.
    The lookup option would work if I repeat data in columns "B:K" but would like to avoid it.


    See attached please I hope will be more understandable.
    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Vlookup value Offset

    This is a bit too complex for my VBA knowledge.
    Hopefully someone will come along and solve the problem.

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    Quote Originally Posted by Special-K View Post
    This is a bit too complex for my VBA knowledge.
    Hopefully someone will come along and solve the problem.
    Thanks for reply.

  6. #6
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    Any other thoughts, anyone?

  7. #7
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    Your blocks of suppliers are 8 rows.
    Is that by design or coincidental?
    And how many could be filled in at one time? A possibility of all?
    Are the PO numbers for each individual supplier always different or could there be duplicates?
    Last edited by jolivanes; 06-01-2017 at 09:57 PM. Reason: Want more info

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    Did not know where the value of "Lates" in Column H needed to go.
    You'll have to get rid of all the Wrap Text / Merge & Center formats. Use Center Across Selection instead.
    If you want to, you can use the following code to do that while Sheet 2 is the Active Sheet
    Please Login or Register  to view this content.
    Save this file in a folder and run the "AAAAA" code with Sheet1 active.
    If all goes as anticipated, it should print pdf's into the same folder as where the workbook has been saved.
    You can change it to print to a printer or just print the pdf files.
    Have a look and let us know.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    jolivanes that is amazing almost what I need . I have been analyzing it and tried correct it to make it work my way but not getting in full working order.

    There could be two ways to make it:
    1st. If I put in the row number 1 and tick the box in column "R" it will print the pdf, just for that PO in with the all data, not all 8 POs in one time. Like you can see it works just for first supplier, after it picks up same suppliers info :/

    2nd could be the most preferable to remove column "A" and to have macro just to tick the box in column "R" and copy will be printed again just for the that PO, but not sure if this even possible code

    For the questions answers are:
    That's design for now with the 8 POs with the possibility to be less or more in the future. In on time the POs can be min 1 up to all 8 and yes all the POs are not repeatable.


    Really appreciate and thanks in advance.
    Attached Files Attached Files

  10. #10
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    Just a suggestion.
    If you only want to print one P.O. at the time, would this (see attached) not be easier.
    I think in the future you're going to regret the use of 65 checkboxes in Column G
    Right now their names are in no particular order and I am not going do it all over for you. That's your job.
    BTW, If you want to save the files, as it currently does, you need to remove the characters it can't handle in file names.
    Click on the "Get UF" button and you'll see.
    After all the supplier names are without illigal characters, click again on the "Get UF" button to slect a P.O. to print.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    Hi,
    jolivanes thanks again, but the Form is not an option. Bookings will be coming not in same time and in one day will be posibillity for same suppliers, after few bookings will be confusion. I thing ill go away with printing all 8 pages in same time, not seperatly.
    So I have changed a bit design and i thing that what i need Nearly got working but cant understand what is not right, the supplier column not printing seperatly but keeps the last Supplier 8 on each print. All other seems ok.
    Would be possible to check please, what i missing?

    Thanks

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Juolupuki; 06-11-2017 at 05:56 PM.

  12. #12
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    Just say in words what you want to do.
    If there is a 1 on column A, print the PO?
    Your checkboxes do not make much sense to me. They start at number 3173 instead of 1

    Does the attached work for you.
    You have an option to select one supplier/PO number to print or print all that have PO numbers in the PO Column
    Attached Files Attached Files
    Last edited by jolivanes; 06-12-2017 at 01:31 AM.

  13. #13
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    Right in one days bookings each has Booking reference and they are not coming in same time. Lets say i have booking FR01 i fill all information in field, put 1 in column "A" and tick the box to print just this booking papers, in this case from row 5 to 12 it is not nessacery it will be all 8 POs in booking can be from 1 to 8. Will be same with the FR02 reference and so on...

    The attached works but ist not good for me when its printing all spread sheet in one go not in blocks like i need and to print each PO it will be confusion when will be same suppliers in same day with the different booking reference.
    Attached Files Attached Files
    Last edited by Juolupuki; 06-12-2017 at 07:42 AM.

  14. #14
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    Please explain what you want. Remember, you know what you have in mind, we don't.
    You mention a field. What is a field in your mind?
    Tick the box and print this booking papers. The checkbox is for 8 rows so which row?
    Row 5 to 12 is not necessary. That is all there is for this particular supplier.
    Etc etc
    The only way I can help anymore is if you take the time to mention everything you do and what the result should be. Item by item.
    BTW, the attached is different from the previous attachments also.

  15. #15
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    This is from 6 posts ago.
    You'll have to get rid of all the Wrap Text / Merge & Center formats. Use Center Across Selection instead.

  16. #16
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    In your last attachment, if you have a 1 in cell A5 and you click on the checkbox in cell W5, do you want to print POs for all the data in rows 5 to 12?
    The data in columns B, D, F, G, H, I, J and K in row 5 repeats in every PO?
    The changing data will be the data in columns C, E, L, M, N, O, P, Q, R, S, T, U and V?

    Same for cell A13 and the checkbox in cell W13? Print POs for all the data in rows 13 to 17?

  17. #17
    Registered User
    Join Date
    07-17-2013
    Location
    UK
    MS-Off Ver
    MS Office 2013
    Posts
    30

    Re: Vlookup value Offset

    Quote Originally Posted by jolivanes View Post
    In your last attachment, if you have a 1 in cell A5 and you click on the checkbox in cell W5, do you want to print POs for all the data in rows 5 to 12?
    The data in columns B, D, F, G, H, I, J and K in row 5 repeats in every PO?
    The changing data will be the data in columns C, E, L, M, N, O, P, Q, R, S, T, U and V?

    Same for cell A13 and the checkbox in cell W13? Print POs for all the data in rows 13 to 17?
    Yes the idea was that.
    I managed to do what i need with yours first macro, found out how it works and changed it .
    Thanks again for your help.

  18. #18
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,549

    Re: Vlookup value Offset

    Good for you.
    So all is well and this thread can be closed.
    Good Luck.

+ 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. offset a vlookup
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 05-04-2015, 07:49 PM
  2. Vlookup + Offset?
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2014, 10:33 PM
  3. [SOLVED] Vlookup offset
    By Simon.xlsx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-06-2014, 11:16 AM
  4. Vlookup with offset
    By pktrusty in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2010, 05:37 PM
  5. VLOOKUP and OFFSET
    By renita8781 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2007, 09:40 AM
  6. Offset a vlookup
    By Jymoz in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 03-03-2007, 06:02 PM
  7. Vlookup & offset
    By jvp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2007, 02:43 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