+ Reply to Thread
Results 1 to 8 of 8

How to use results of a vlookup function cell in a different cell formula

  1. #1
    Registered User
    Join Date
    02-02-2017
    Location
    usa
    MS-Off Ver
    2010
    Posts
    3

    How to use results of a vlookup function cell in a different cell formula

    Hi, I'm relatively new to coding in excel but am finding it very cool. I need to know how to take the result of one cell, Cell-C2, the formula is- =VLOOKUP(Beta2!A2,Beta1!A:J,10,FALSE)
    and use it in another cell, O2, as the value "C2:C200" in the function =SUMPRODUCT(F2:200,C2:C200)

    Thanks in advance

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to use results of a vlookup function cell in a different cell formula

    Welcome to the forum!

    What exactly do you mean by, "use it in another cell, O2, as the value "C2:C200" in the function =SUMPRODUCT(F2:200,C2:C200)"? What sort of value does the VLOOKUP formula return?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-02-2017
    Location
    usa
    MS-Off Ver
    2010
    Posts
    3

    Re: How to use results of a vlookup function cell in a different cell formula

    i want the actual value that is being displayed in cells C2:C200 as a result of the function of =VLOOKUP(Beta2!A2,Beta1!A:J,10,FALSE) and then take that value and put it in another formula in cell, cell O2, in this formula, =SUMPRODUCT(F2:200,C2:C200)

    does this make sense?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to use results of a vlookup function cell in a different cell formula

    No, sorry! Are you able to provide a sample workbook?

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.

  5. #5
    Registered User
    Join Date
    02-02-2017
    Location
    usa
    MS-Off Ver
    2010
    Posts
    3

    Re: How to use results of a vlookup function cell in a different cell formula

    i Think you are making too much of this. if i just wanted to display the value of a cell that was populated by vlookup function i could simply copy and then paste using the paste "value" function so i got the displayed data vice the formula that is in that cell. i want to do that for the "values" of column C to be used in an equation in column O.
    the equation is, simplified version, =SUMPRODUCT(F2,C2)

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: How to use results of a vlookup function cell in a different cell formula

    I'm sorry that you think I am "making too much of this". I hope somebody else understands what you are trying to do, but I'm afraid I don't.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: How to use results of a vlookup function cell in a different cell formula

    Quote Originally Posted by bendover4me View Post
    i Think you are making too much of this.
    No, not really, Im not sure I understand what you want, either. Keep in mind that generally, we have no clue what you are working wih, or what you actually want, so to avoid guessing and waste both your time and the responder, we often ask for a sample WB so we can see exactly where you are.

    Wioth that said, that formula...
    =SUMPRODUCT(F2:200,C2:C200)
    looks wrong anyway, I think you left out a column ref?
    =SUMPRODUCT(F2:F200,C2:C200)

    Formulas in excel look at what is displayed in the cell, not the underlying contents. So if you have a formula in A1 that says =B1+5, and B1 contains 10, then any other formula that references A1 will reference 15, not the formula =B10+5
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: How to use results of a vlookup function cell in a different cell formula

    I am not understanding you, either. What, exactly does the VLOOKUP(..) function return? Exactly how does this result fit into the SUMPRODUCT() function?

    Reading between the lines, perhaps you are looking for the INDIRECT() function https://support.office.com/en-us/art...1-92b6306fa261 ? Perhaps your VLOOKUP(...) function returns the text string "C2:C200", in which case, you could use the INDIRECT() function inside of the SUMPRODUCT() function.

    VLOOKUP() function returns "C2:C200" to a cell.
    =SUMPRODUCT(F2:F200,INDIRECT(cell with VLOOKUP))

    Is that what you are looking for, or am I grossly misunderstanding?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. How to reference one cell below the results of a VLOOKUP function
    By Sackie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2013, 07:55 PM
  2. format cell based on results of vlookup function
    By Edith F in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. format cell based on results of vlookup function
    By Biff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] format cell based on results of vlookup function
    By Edith F in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-21-2005, 03: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