+ Reply to Thread
Results 1 to 3 of 3

Vlookup Help (Need to replace col_index_number by +1) Easy way to do that?

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    San Diego
    MS-Off Ver
    Excel 2010
    Posts
    36

    Unhappy Vlookup Help (Need to replace col_index_number by +1) Easy way to do that?

    Here is the formula I am working with:

    =IFERROR(VLOOKUP($A10,'P&L MedSci'!$E$5:$T$85,9,FALSE),0)

    I want to be able to make that 9 a 10 to reference the next column over. Is there an easy way to replace all the 9's to 10's?

    Or a formula so when I drag it over it will only change the col index number?

    Thanks for any help!!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Vlookup Help (Need to replace col_index_number by +1) Easy way to do that?

    Is there an easy way to replace all the 9's to 10's?
    Would you consider a Find/Replace?
    I have frequently put references or formulas in that argument. If I have several columns to return, I will put the desired column number at the top of my output table, then refer to that in the formula:
    Please Login or Register  to view this content.
    I can use formulas for that top row, if I prefer a formula to hand entered values.

    I have even included this kind of formula inside of the VLOOKUP() function -- usually involving the COLUMN() or COLUMNS() function as a way of "counting" the current column.

    A lot depends on exactly what you want to do.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  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 2403
    Posts
    44,063

    Re: Vlookup Help (Need to replace col_index_number by +1) Easy way to do that?

    =IFERROR(VLOOKUP($A10,'P&L MedSci'!$E$5:$T$85,columns($A:I),FALSE),0)
    will return 9. As you copy across it will return 10, 11, etc.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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] Easy VLOOKUP for you, hard for me please help
    By blackburnsexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-25-2016, 11:41 AM
  2. vlookup and hyperlinks...is there an easy way?
    By flyermarc in forum Excel General
    Replies: 2
    Last Post: 08-18-2012, 02:29 PM
  3. Replies: 2
    Last Post: 01-20-2011, 09:57 PM
  4. Auto replace, can it easy be done?
    By mbogda in forum Excel General
    Replies: 3
    Last Post: 08-17-2006, 11:05 AM
  5. Vlookup Easy Question
    By comotoman in forum Excel General
    Replies: 6
    Last Post: 10-05-2005, 06:05 PM
  6. Replies: 2
    Last Post: 02-09-2005, 01:06 AM
  7. [SOLVED] Looking for an easy way to replace letters with acutes
    By Speak-ezy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-26-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