+ Reply to Thread
Results 1 to 3 of 3

Using vlookup to return single value based on calculations of other columns?

  1. #1
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Using vlookup to return single value based on calculations of other columns?

    Hi, I have attached a spreadsheet where I am attempting to return a single value (highlighted in yellow) for a calculation. i cannot assume the data each month will always fall on the same row so i need to use lookup to ensure i am adding the right data. Does anyone know how I can do this?

    thanks
    Attached Files Attached Files
    Last edited by greyscale; 08-18-2010 at 01:17 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using vlookup to return single value based on calculations of other columns?

    If you change B20 to read just S and B21 to read just M, then in C20:

    =SUMIF($B$3:$B$17,B20&"*",$I$3:$I$17)/SUMIF($B$3:$B$17,B20&"*",$E$3:$E$17)

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Using vlookup to return single value based on calculations of other columns?

    Thank you NBVC. Works beautifully!

+ 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