Cell/row sorting - data from two locations

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
516
Office Version
2011
Platform
MacOS
Hi everyone,

Hopefully this can be done, and hopefully you follow what I'm trying to do.


Sheet1 (for argument sake, columns = A - G, rows = 2+header)

LASTFIRSTMONTUEWEDTHUFRI
JonesBob55555
SmithAnn88888

<tbody>
</tbody>






Sheet2 (just references from sheet1, except for column H)

LASTFIRSTMONTUEWEDTHUFRIOTHERTOTAL
=A2=B2=C2=D2=E2=F2=G2=nothing=sum(sheet2 A2-H2)
=A3=B3=C3=D3=E3=F3=G3=sheet2 X1=sum(sheet2 A3-H3)

<tbody>
</tbody>






The problem is when sheet1 is sorted (let's say last name & first name), the sheet2 cell X1 reference doesn't follow the sort. In the case of the example, instead of cell X1 data moving from cell H3 to H2, it remains at H3.

Thanks to anyone who replies!
 

anglais428

Well-known Member
Joined
Nov 23, 2009
Messages
623
Perhaps you could create a table to hold each person's first name and last name. Then you could use either vlookup or index/match to pull in the data (these would be dynamic and not break due to sorting in Sheet1).
 

TAPS_MikeDion

Well-known Member
Joined
Aug 14, 2009
Messages
516
Office Version
2011
Platform
MacOS
Thanks, I'll try that. Never used VLOOKUP before so I guess it's time to do some researching.
 

Forum statistics

Threads
1,078,516
Messages
5,340,868
Members
399,396
Latest member
PBE

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top