+ Reply to Thread
Results 1 to 6 of 6

Vlookup formula that references the row you are on

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2010
    Posts
    39

    Vlookup formula that references the row you are on

    Guys I have a spread sheet thats got 3 cells in question.

    Cell 1 has my information, cell 2 has my main formula that I plan to drop down over about 2k lines. Cell 3 has an option formula.

    So cell 1 reads: Finestra vetro trasparente TC-TE 18W (GX24q-2) AMM. 3,00

    Cell 2 has a formula that says "IF(COUNTIF(H50,"*LED*"),VLOOKUP(B50,$AA$10:$AH$111,7,FALSE),VLOOKUP(B50,$AA$10:$AH$111,8,FALSE))

    Cell 3 has a formula =IF(COUNTIF(H50,"*GX24Q-2*"),"TC-TE 18W (GX24Q-2)",IF(COUNTIF(H50,"*GX24Q-3*"),"TC-TE 26W (GX24Q-3)"," "))

    The problem is, where I will be pulling down the formala in cell 2 over multiple lines, I need to be able to rewrite the formula in cell 3 so that it always references the row cell 2 is on.

    Im tryin to do it this way so i dont have to have it 2k+ times on my spreadsheet.

    Can anyone help??
    Last edited by Locopete99; 05-13-2013 at 08:39 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Vlookup formula that references the row you are on

    Locopete99 Good Morning.

    Itīs a little confused.

    May you attach an example spreadshhet here pointing exactly what you have and what you desire as result?

    Have a nice day.
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

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

    Re: Vlookup formula that references the row you are on

    Not sure what you are trying to anchor but the "$" will anchor a row or a column
    For example, if you use H$50, and drag down, the 50 will not change. $H$50 will lock in both the row (when dragging down) and the column (when dragging across)
    Is that what you are looking for?
    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

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup formula that references the row you are on

    Hi Locopete,
    Your thread title says
    Vlookup formula that references the row you are on
    and for this you can use formula as = row()
    and this will always reference the row you are on

    If you have other doubts, upload a sample workbook with your expected results. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Vlookup formula that references the row you are on

    Thanks guys I'll see if I can use that.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Vlookup formula that references the row you are on

    Okay.. and if still stuck, upload the sample workbook this time



    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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