+ Reply to Thread
Results 1 to 3 of 3

Thread: Return value of cell based on 2 other cells within a table

  1. #1
    Registered User
    Join Date
    08-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Return value of cell based on 2 other cells within a table

    Hi all - would love some help on this...

    I have a tabular data set of 12 or so columns. 3 of these columns are of particular interest (country, project, cost.) 1 countries have multiple projects; the same project is listed against multiple countries.

    I have created a grid within a separate excel worksheet with country down one side and project along the top. Within each cell in this grid, I want to return the value of the cost of that project within that country from my data set. How can I do this?

    Solutions much appreciated!

    Thx
    Last edited by hugzy; 08-19-2011 at 02:30 PM.

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

    Re: Return value of cell based on 2 other cells within a table

    You can use SUMIFS...

    e.g.

    =SUMIFS('Sheet1'!C:C,'Sheet1'!A:A,$A2,'Sheet1'!B:B,B$1)

    where it is assumed that the columns of interest are in Sheet1, column A:C and the countries in column A, Project in column B, costs in column C.

    And in the active sheet the countries are listed starting in A2 and the projects listed starting in B1, the formula would then be in B2, copied down and across.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    08-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Return value of cell based on 2 other cells within a table

    Thanks so much for your fast response - works like a dream!

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0