+ Reply to Thread
Results 1 to 2 of 2

Formula when the number of referenced cells changes

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Buffalo, NY
    MS-Off Ver
    2011 for Mac
    Posts
    2

    Formula when the number of referenced cells changes

    See attached file, please.

    Rows 1 through 3 are my data. Row 3 shows the total for Dan, followed by the total for Bill, then Jim's total.

    Rows 8 through 10 are how the data might look later on.

    I want in Row 3, that the left-most cell under each person has their total.

    My problem is that the number of columns each person has, will change (as they do between my two sets of data). What formula can I put in Row 3 (and 10) so that it will "know" how many columns each person has?

    Is there a formula that can do that, or is this a job for pivot tables (or some other cool method)?

    Thanks!!!
    Dan
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula when the number of referenced cells changes

    In B10

    =IF(COUNTIF($B$8:B8,B8)>1,"",SUMIF($B$8:$J$8,B8,$B$9:$J$9))

    Copy across
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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] making all referenced cells 'jump' X number of rows when I drag down a formula
    By ryefield in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-10-2013, 12:31 PM
  2. Replies: 1
    Last Post: 04-30-2012, 10:01 PM
  3. lookup cells above or below a certain referenced number?
    By tlapointe1970 in forum Excel General
    Replies: 2
    Last Post: 04-09-2012, 02:08 PM
  4. Sorting Referenced Cells in VBA and Keeping Them Referenced
    By BrownTeddyBear in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2009, 06:15 AM
  5. Highlighting referenced cells within a formula
    By jonnyaykroyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2007, 08:48 AM

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