Smart referral quotation E1:E8, replacing number 8 by cell value

ThomasvRiet

New Member
Joined
Oct 19, 2018
Messages
1
Hi all,
I work on a document to automatically track how many holiday days I have left.
In the gyazo link you can see the entire document.
https://gyazo.com/a0106151e3e9aba40f9e31ccca13158c

Simple workflow:
Cell B6 Determines the day of today
Cell C6 Determines the correlating weeknumber

In Column D, this week is automatically highlighted
In Column E you can see the days I build up
In Column G you can see the days I have taken off -> creating a number 1 in Column F

The balance in days is determined by adding all values (1's) in Column E minus all values (1's) of Column F from row 1 untill this week's row.
=SUM(E1:E8) - SUM(F1:F8)

What I would like to add now:
in this week (42), to values need to be added from E1:E8 since row 8 is the row of this weeknumber.
Instead of defining the quatation E1:E8 I would like to have it as following: E1:E('rownumber current week')
Cell B8 calculated this rownumber now using =MATCH(B7;D:D;0)

Is it possible to integrate this result of Cell B8/row number current week in any way?

Help is highy appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Welcome,
Take a look at the indirect function, search for it on this forum, there was an example just last week
 
Upvote 0

Forum statistics

Threads
1,215,588
Messages
6,125,691
Members
449,250
Latest member
azur3

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