Trying to track weight loss over 8 cells in the same row with the last cell showing the weight gain or loss

Fiftyfingers

New Member
Joined
Jun 30, 2014
Messages
2
i have a formula that works for 3 weight entries {=IF($AP5="",$AG5-$Y5,$AP5-$Y5)} Y= first weight entry, AG5= second weight entry and AP5= third weight entry. I am not sure how to expand it to figure weight gain or loss for seven entries.

All help is always appreciated.:beerchug:
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi and welcome to the board, I'm not clear what you really want my best guess is if in

Y5 = Start weight
AG5 = 1st weeks weight

now lets say the next 7 cell are filled in weekly with the new weight

AH5 = Week2 weight
AI = Week3 weight
AJ = Week4 weight
AK = Week5 weight
AL = Week6 weight
AM = Week7 weight
AN = Week8 weight

So in AO5

if you put

=INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN()-9+COUNT($AG$5:$AN$5),4),"1","")&ROW())-Y5

Then the new weight losses will update in AO5 as you filling in the weeks

Hope that is helpful

Cheers
 
Upvote 0
Or as an alternative to

=INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN()-9+COUNT($AG$5:$AN$5),4),"1","")&ROW())-Y5

I could have used in this case

=OFFSET(AO5,0,-9+COUNT($AG$5:$AN$5))-Y5

Which is probably better

Cheers
 
Upvote 0

Forum statistics

Threads
1,223,105
Messages
6,170,128
Members
452,304
Latest member
Thelingly95

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