Formula Problem!!!

Status
Not open for further replies.

MarkReddell

Board Regular
Joined
Sep 1, 2011
Messages
210
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I need a formula that will calc. the last row in a column to the Total row within a Table after the table sort with data entries below the last sorted row!!! :confused::confused::confused:
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
bit confusing.. so if I understand correctly, let's say you have a table from row 1 through 10, then the total in 11. Then, let's say in row 12 you want to compare the entry in row 10 to row 11... I'm guessing the problem is that if you sort, the last row may move and the formula refers to some other row than 10..

I assume to total row, row 11 is stable.. so you work off that

=INDIRECT(ADDRESS(11,2,4,,)) --this would give you the value in row 11, column B..
=INDIRECT(ADDRESS(10,2,4,,)) --this would be row 10

you can also build in formulas.. for example, instead of 11, you can put ROW(B11) which returns 11.. this is helpful if you copy the formula because it updates..

consequently, you can use ROW(B10) or ROW(B11)-1
 
Upvote 0
You are close! I sort by date for my reports. So, if I have a month date entries say for the month of Aug. which has 31 days, So in row 32 in my table would by for my Total row. If I were to sort by date the week of aug. 14-20 I want to write a formula in the Total Row that will return either the first row (WHICH WOULD BE AUG 14) or the last row (WHICH WOULD BE AUG. 20) of a sorted table only with all other data entry rows before & after the selected rows sorted out!!! Thanx for ALL your help!!!
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,583
Messages
6,179,671
Members
452,937
Latest member
Bhg1984

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top