Another convoluted Can I do this question ...

nckwnchstr

New Member
Joined
Jul 21, 2020
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
Good morning, or afternoon.

I'm trying to figure out how to link 2 diffent sheets together, with several different tables / columns. The purpose behind this is to have a real-time tracker for housing where i'm at, and to limit the number of places i have to input data to mitigate human error or time spent changing things.

What I have to work with is something similar to this:

A B C D E F G H
1 Date PAX HA-1 HA-2 HA-3 HA-4 HA-5 HA-6
223 July 2034+30+4
324 July 2025+25
425 July 2065-65
526 July 20125-25-100
627 July 20100+50+50
728 July 2056+6+50
829 July 2037+37
930 July 2089+89
1031 July 2054+54
(sheet is labeled Unit Flow, and cell labeled as Date is cell A1)

I'd like to be able to link a sheet laid out like the one above with one that a corresponding table on a sheet labeled Totals. There are 4 very large tables that have a lot of data in them, but for simplicity sake it will look like this


AZ BA BD BG BJ BM BP
1 DateHA-1HA-2HA-3HA-4HA-5HA-6
223 July 20400 (will add 30)525467511 (will add 4)125254
324 July 20430525467 (will add 25)515125254
425 July 20430525 (will subtract 65)492515125254
526 July 20430460492(will subract 25)515 (will subtract 100)125254
627 July 20430460467415125 (will add 50)254 (will add 50)
728 July 20430 (will add 6)460 (will add 50)467415175304
829 July 20436 (will add 37)510467415175304
930 July 20473510 (will add 89)467415175304
1031 July 20473599467415 (will add 54)175304

What I would like is for the Totals sheet to be linked to the Unit Flow sheet so that it automatically adds or subtracts the corresponding number to the correct cell that correlates on the Tables sheet. If there is no data in the Unit Flow cell i need the data in the Tables sheet to continue to populate to the cell below it with the current number reflecting no addition or subtraction. These tables are linked to several bar and line graphs that project unit flow out for as long as i have data (right now they're out to 30 SEP 2020), and i want to only have to update the Unit Flow chart and have the bar graphs and line graphs all read the tables and update accordingly.

I dont know if this is possible, I'd like to think it is, but I just have no idea how to make this happen. I'm trying to set this up as a long term product for area I'm currently deployed to, and it's definitely well beyond my EXCEL knowledge base.

Thank you very much for any assistance possible!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi NckWnchstr,

A cell can either contain a value or a formula so for Totals cell BA3 it can be a formula or the number 430.

Maybe the VBA guys could offer a solution but using just formulae you'd need a re-design. I'd suggest an extra row on the Totals giving the starting position (which would appear to be the values from 22 July 2020) and then the formulae below would perform the calculation using that as the starting position +- the values from Unit Flow.

My example below doesn't have error checking so would need all HA-n headings and dates present, but you could easily wrap an IFERROR(...,0) around the INDEX so it avoided generating an N/A.

Book1
ABCDEFGH
1DatePAXHA-1HA-2HA-3HA-4HA-5HA-6
223-Jul-2034304
324-Jul-202525
425-Jul-2065-65
526-Jul-20125-25-100
627-Jul-201005050
728-Jul-2056650
829-Jul-203737
930-Jul-208989
1031-Jul-205454
Unit Flow
Cell Formulas
RangeFormula
B2:B10B2=ABS(SUM(C2:H2))


Book1
AZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBP
1DateHA-1HA-2HA-3HA-4HA-5HA-6
2START400525467511125254
323-Jul-20430525467515125254
424-Jul-20430525492515125254
525-Jul-20430460492515125254
626-Jul-20430460467415125254
727-Jul-20430460467415175304
828-Jul-20436510467415175304
929-Jul-20473510467415175304
1030-Jul-20473599467415175304
1131-Jul-20473599467469175304
Totals
Cell Formulas
RangeFormula
BP3:BP11,BM3:BM11,BJ3:BJ11,BG3:BG11,BD3:BD11,BA3:BA11BA3=BA2+INDEX('Unit Flow'!$C$2:$H$999,MATCH($AZ3,'Unit Flow'!$A$2:$A$999,0),MATCH(BA$1,'Unit Flow'!$C$1:$H$1,0))
 
Upvote 0
Will this match a date? or will it match line for line?

I lined up the graph with matching date rows, but we'll have times where we go 2 weeks with no movement, and then we'll get a big push of movement for a few days and then it will slack off.

Would the second formula be =BA2+INDEX('Unit Flow'!$C$2:$H$999,MATCH(TODAY())($AZ3,'Unit Flow'!$A$2:$A$999,0),MATCH(BA$1,'Unit Flow'!$C$1:$H$1,0))?

That way if my date goes from 28-Jul-20 to the next date being 4-Aug-20 it will skip down to that date and continue?

Thanks again!
 
Upvote 0
It matches by date, if one exists.
If you change to use only TODAY() then the totals won't be correct as you'll miss any previous entries from Unit Flow.

I don't know which table you mean for "we'll have times where we go 2 weeks with no movement" but if it's the Unit Flow then that's OK, you can omit rows and dates which have no values but you need that IFERROR code so the running total is maintained.

NckWnchstr-3.xlsx
ABCDEFGH
1DatePAXHA-1HA-2HA-3HA-4HA-5HA-6
223-Jul-2034304
324-Jul-202525
425-Jul-2065-65
526-Jul-20125-25-100
627-Jul-201005050
728-Jul-2056650
829-Jul-203737
930-Jul-208989
1031-Jul-205454
114-Aug-2021123456
Unit Flow
Cell Formulas
RangeFormula
B2:B11B2=ABS(SUM(C2:H2))


NckWnchstr-3.xlsx
AZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBP
1DateHA-1HA-2HA-3HA-4HA-5HA-6
2START400525467511125254
323-Jul-20430525467515125254
424-Jul-20430525492515125254
525-Jul-20430460492515125254
626-Jul-20430460467415125254
727-Jul-20430460467415175304
828-Jul-20436510467415175304
929-Jul-20473510467415175304
1030-Jul-20473599467415175304
1131-Jul-20473599467469175304
1201-Aug-20473599467469175304
1302-Aug-20473599467469175304
1403-Aug-20473599467469175304
1504-Aug-20474601470473180310
1605-Aug-20474601470473180310
1706-Aug-20474601470473180310
Totals
Cell Formulas
RangeFormula
BP3:BP17,BM3:BM17,BJ3:BJ17,BG3:BG17,BD3:BD17,BA3:BA17BA3=BA2+IFERROR(INDEX('Unit Flow'!$C$2:$H$999,MATCH($AZ3,'Unit Flow'!$A$2:$A$999,0),MATCH(BA$1,'Unit Flow'!$C$1:$H$1,0)),0)
 
Upvote 0
I attempted to use the formula you gave me, and my EXCEL (2016) is throwing a fit and wont let it actually work. I changed the cell values to match what I have in my spreadsheet (both tables are copied, in the first spreadsheet the tab is labeled Totals. I attempted to change the BA-1 number under the 23-Jul-20 date. I also linked the second sheet which is labeled Unit Flow. I'm not exactly sure where I went wrong in this. I've looked at it a few times, but it just gives me the C1 total. Did i fat finger something in the formula? I also attempted to re-create it by selecting everything, and it will highlight cells on the main Totals page, but when im in the Unit Flow table, nothing shows up as highlighted.

Housing Graph V2.0 (1).xlsx
ABCDEFGHIJKLMNO
1STARTING NUMBERS453431433419503
2Building AreaBA-1BA-1 MaxBA-1 Daily %BA-2BA-2 MaxBA-2 Daily %BA-3BA-3 MaxBA-3 Daily %BA-4BA-4 MaxBA-4 Daily %BA-5
3Date7-Jul-2042954279.1549357086.4949854291.8841144692.15503
48-Jul-2042854278.9748957085.7949854291.8841344692.60510
59-Jul-2042554278.4148957085.7949754291.7041244692.38511
610-Jul-2042554278.4148957085.7949554291.3341244692.38520
711-Jul-2042554278.4148857085.6149354290.9641144692.15517
812-Jul-2042854278.9751457090.1849854291.8841344692.60510
913-Jul-2042554278.4148257084.5648254288.9341044691.93458
1014-Jul-2042554278.4148257084.5648254288.9341044691.93455
1115-Jul-2042554278.4148257084.5647454287.4541344692.60472
1216-Jul-2042554278.4148257084.5647054286.7241344692.60472
1317-Jul-2042554278.4148157084.3945754284.3241344692.60472
1418-Jul-2042554278.4148157084.3945754284.3241344692.60472
1519-Jul-2042554278.4148157084.3945754284.3241344692.60472
1620-Jul-2042554278.4148157084.3945754284.3241344692.60472
1721-Jul-2042554278.4145657080.0044154281.3741444692.83497
1822-Jul-2042554278.4145557079.8244154281.3741544693.05497
1923-Jul-2045354283.5843157075.6143354279.8941944693.95503
2024-Jul-2045354283.5843157075.6143354279.8941944693.95503
2125-Jul-2045354283.5843157075.6143354279.8941944693.95503
2226-Jul-2045354283.5843157075.6143354279.8941944693.95503
2327-Jul-2045354283.5843157075.6143354279.8941944693.95503
2428-Jul-2045354283.5843157075.6143354279.8941944693.95503
2529-Jul-2045354283.5843157075.6143354279.8941944693.95503
2630-Jul-2045354283.5843157075.6143354279.8941944693.95503
2731-Jul-2045354283.5843157075.6143354279.8941944693.95503
281-Aug-2045354283.5843157075.6143354279.8941944693.95503
292-Aug-2045354283.5843157075.6143354279.8941944693.95503
303-Aug-2045354283.5843157075.6143354279.8941944693.95503
314-Aug-2045354283.5843157075.6143354279.8941944693.95503
325-Aug-2045354283.5843157075.6143354279.8941944693.95503
Totals
Cell Formulas
RangeFormula
J3:J32,D3:D32D3=(ABS(542))
N3:N32,K3:K32,H3:H32,E3:E32E3=(C3/D3)*100
G3:G32G3=(ABS(570))
M3:M32M3=(ABS(446))
C19C19=C1+IFERROR(INDEX('Unit Flow'!$E$6:$AC$999,MATCH($B19,'Unit Flow'!$B$6:$B$9999,0),MATCH(C$2,'Unit Flow'!$E$2:$AC$2,0)),0)



Housing Graph V2.0 (1).xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABAC
2ARRIVALPAXHousing Loction / PAXTP1TP2TP3BA1BA2BA3BA4BA5BA6BA7BA8BA9PAD 16PAD17PAD17CPAD 19PAD 20PAD21PAD25PAD26PAD27PAD28PAD29PAD31PAD32
38-Jul-20142TP-1-42-100
410-Jul-2025BA 225
512-Jul-20138TP-1 -138
623-Jul-20300PAD-16300
712-Jul-200BA 9
815-Jul-200BA 9
921-Aug-20150BA 7, 8-50-100
1021-Aug-20150PAD 16150
1116-Jul-20150BA 6-150
1219-Jul-200PAD 16
1320-Jul-200BA 8
1426-Jul-200BA 4,5,6,7,
1528-Jul-200BA 8
1630-Jul-200BA 9
175-Aug-200PAD 16/19
188-Aug-200
1928-Aug-20154PAD 2110054
200PAD 19
2130-Jul-20138PAD 16-138
2222-Aug-200BA5, 6, 7
Unit Flow
Cell Formulas
RangeFormula
C3:C22C3=ABS(SUM(E3:AC3))
 
Upvote 0
I can't see why you've removed all formulae except for 23 July?

INDEX works by taking a range then retrieving a specified row and column content. My formula is trying to retrieve any Unit Flow value for a specified Date and Building Area.
Your INDEX goes into 'Unit Flow'!$E$6:$AC$999 but the possible numbers start at E3 across to AC and whatever row you want so this should be 'Unit Flow'!$E$3:$AC$999.
The first MATCH finds the row so once the INDEX array is fixed this should work.
The second MATCH finds which column contains a matching Building Area but your search range was changed to 'Unit Flow'!$E$2:$AC$2 so this will error as MATCH will only search one row or one column.

Unit Flow
I see Unit Flow has missing dates and dates out of sequence, but that's OK as we can work with that so I've made no changes to your sheet.

Totals
You show BA-1 starting number as 453 but on 7 July it's reduced by -24 to 429. There is a missing Unit Flow entry for 7 July so this will not work. NOTE: If you remove Unit Flow entries then you must first reset the Starting Numbers on the Totals as at the last date removed (as subsequent dates will be accounted for). I've assumed your ending values for 7 July were correct and used them as the current Starting Numbers and deleted the 7 July from Totals.

A MATCH on Building Area is used to figure which column in Unit Flow to search, so the format must be the same. I've changed Building Area "BA-1" to "BA1" so it matches, and the same for other BAs.

I don't understand the use of ABSolute in the Max columns so I've changed it to use the MAX formula.

Here's the new Totals tab:

NckWnchstr-4.xlsx
ABCDEFGHIJKLMNO
1Building AreaBA1BA-1 MaxBA-1 Daily %BA2BA-2 MaxBA-2 Daily %BA3BA-3 MaxBA-3 Daily %BA4BA-4 MaxBA-4 Daily %BA5
2STARTING NUMBERS429493498411503
3Date08-Jul-2042972958.8549351895.17498498100.0031141175.67503
409-Jul-2042972958.8549351895.17498498100.0031141175.67503
510-Jul-2042972958.85518518100.00498498100.0031141175.67503
611-Jul-2042972958.85518518100.00498498100.0031141175.67503
712-Jul-2042972958.85518518100.00498498100.0031141175.67503
813-Jul-2042972958.85518518100.00498498100.0031141175.67503
914-Jul-2042972958.85518518100.00498498100.0031141175.67503
1015-Jul-2042972958.85518518100.00498498100.0031141175.67503
1116-Jul-2042972958.85518518100.00498498100.0031141175.67503
1217-Jul-2042972958.85518518100.00498498100.0031141175.67503
1318-Jul-2042972958.85518518100.00498498100.0031141175.67503
1419-Jul-2042972958.85518518100.00498498100.0031141175.67503
1520-Jul-2042972958.85518518100.00498498100.0031141175.67503
1621-Jul-2042972958.85518518100.00498498100.0031141175.67503
1722-Jul-2042972958.85518518100.00498498100.0031141175.67503
1823-Jul-20729729100.00518518100.00498498100.0031141175.67503
1924-Jul-20729729100.00518518100.00498498100.0031141175.67503
2025-Jul-20729729100.00518518100.00498498100.0031141175.67503
2126-Jul-20729729100.00518518100.00498498100.0031141175.67503
2227-Jul-20729729100.00518518100.00498498100.0031141175.67503
2328-Jul-20729729100.00518518100.00498498100.0031141175.67503
2429-Jul-20729729100.00518518100.00498498100.0031141175.67503
2530-Jul-20729729100.00518518100.00498498100.0031141175.67503
2631-Jul-20729729100.00518518100.00498498100.0031141175.67503
2701-Aug-20729729100.00518518100.00498498100.0031141175.67503
2802-Aug-20729729100.00518518100.00498498100.0031141175.67503
2903-Aug-20729729100.00518518100.00498498100.0031141175.67503
3004-Aug-20729729100.00518518100.00498498100.0031141175.67503
3105-Aug-20729729100.00518518100.00498498100.0031141175.67503
Totals
Cell Formulas
RangeFormula
C3:C31,O3:O31,L3:L31,I3:I31,F3:F31C3=C2+IFERROR(INDEX('Unit Flow'!$E$3:$AC$999,MATCH($B3,'Unit Flow'!$B$3:$B$999,0),MATCH(C$1,'Unit Flow'!$E$2:$AC$2,0)),0)
D3:D31,M3:M31,J3:J31,G3:G31D3=MAX(C$2:C$999)
E3:E31,N3:N31,K3:K31,H3:H31E3=(C3/D3)*100
 
Upvote 0
Thanks!!

You're an absolute life saver!!

the ABS(###) callout was to prevent any issues with the drag & drop or double click function to continue the numbers in that column since thats a maximum capacity callout.

I had tried the formula in one cell rather than copy it into every cell right away, this formula (as well as the previous one you helped me with) are way beyond anything i understand about EXCEL. I wanted to try one cell and try and make it work before i altered the whole workbook and attempt it. Took a little tweaking and massaging and adjusting to my original file, but i was able to finally get it to work correctly.

I cant thank you enough for the help!!
 
Upvote 0
Hello,

Sorry for the issue with the message, what i'm trying to work out is if i have 2 dates that are the same in the second sheet, how can i get them to read on the same date and update accordingly? Right now, the Totals spreadsheet is reading 2 dates and erroring out and will not input data. It is causing issues and will not give us an accurate picture on that specific date, We will have several movements on each day in the next few months, and i'm hoping to be able to avoid having to do the math or having to show an inaccurate picture by showing a move a day early or a day late.

Is this possible?

Housing Graph Official.xlsx
ABCDEFGHIJKLMNOPQ
1Building AreaBA-1BA-1 MaxBA-1 Daily %BA-2BA-2 MaxBA-2 Daily %BA-3BA-3 MaxBA-3 Daily %BA-4BA-4 MaxBA-4 Daily %BA-5BA-5 MaxBA-5 Daily %
2STARTING NUMBERS494280355522
3Date3-Aug-2049454291.14285704.9105420.0035544679.6052263282.59
44-Aug-201494542275.651028570180.351000542184.501355446303.8152263282.59
55-Aug-2049454291.14285704.9105420.0035544679.60-478632-75.63
66-Aug-2029354254.06-72570-12.6310054218.4535544679.60-478632-75.63
77-Aug-2041654276.75-18570-3.1618854234.691011446226.68-466632-73.73
88-Aug-2041654276.75-18570-3.1618854234.691011446226.68-466632-73.73
99-Aug-2041654276.75-18570-3.1618854234.691011446226.68-466632-73.73
1010-Aug-2041654276.75-18570-3.1618854234.691011446226.68-466632-73.73
1111-Aug-2041654276.75-18570-3.1618854234.691011446226.68-466632-73.73
1212-Aug-2041654276.75-18570-3.1618854234.691011446226.68-466632-73.73
1313-Aug-20661542121.968257014.3923354242.991076446241.26-441632-69.78
1414-Aug-20666542122.888657015.0925454246.861165446261.21-439632-69.46
1515-Aug-20691542127.498657015.0925454246.861165446261.21-439632-69.46
1616-Aug-20667542123.068657015.0925454246.861165446261.21-439632-69.46
1717-Aug-20667542123.068657015.0925454246.861165446261.21-439632-69.46
1818-Aug-20722542133.218657015.0925454246.861165446261.21-439632-69.46
1919-Aug-20937542172.888657015.0927754251.111165446261.21-439632-69.46
2020-Aug-201191542219.748657015.0927754251.111165446261.21-439632-69.46
2121-Aug-201091542201.298657015.0927754251.111165446261.2110963217.25
2222-Aug-201091542201.298657015.0927754251.111165446261.2110963217.25
2323-Aug-201203542221.96-39570-6.8433154261.071222446273.9910963217.25
2424-Aug-201248542230.26-39570-6.8433154261.071222446273.9910963217.25
2525-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
2626-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
2727-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
2828-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
2929-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
3030-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
3131-Aug-201493542275.46-39570-6.8433154261.071222446273.9910963217.25
Totals
Cell Formulas
RangeFormula
C3:C31,O3:O31,L3:L31,I3:I31,F3:F31C3=C2+IFERROR(INDEX('Unit Flow'!$E$3:$AE$9999,MATCH($B3,'Unit Flow'!$B$3:$B$9880,0),MATCH(C$1,'Unit Flow'!$E$2:$AE$2,0)),0)
D3:D31,J3:J31D3=(ABS(542))
E3:E31,Q3:Q31,N3:N31,K3:K31,H3:H31E3=(C3/D3)*100
G3:G31G3=(ABS(570))
M3:M31M3=(ABS(446))
P3:P31P3=(ABS(632))



Housing Graph Official.xlsx
ABCDEFGHI
1
2UNITDATEPAXHousing Loction / PAXBA-1BA-2BA-3BA-4BA-5
34-Aug-2040001000100010001000
45-Aug-205000-1000-1000-1000-1000-1000
55-Aug-203000100010001000
66-Aug-20201-201-100100
77-Aug-20933123548865612
88-Aug-200
99-Aug-200
1010-Aug-200
1111-Aug-200
1213-Aug-20480245100456525
1313-Aug-20345-200-40-20-55-30
1414-Aug-201215421892
1515-Aug-202525
1616-Aug-2024-24
1716-Aug-2060254854
1818-Aug-205555
1919-Aug-2023821523
2020-Aug-20254254
2121-Aug-20448-100548
2221-Aug-20205-22015
2323-Aug-2098112-1255457
2424-Aug-204545
2525-Aug-20245245
2625-Aug-200
2727-Aug-200
2828-Aug-200
2929-Aug-200
3029-Aug-200
3131-Aug-200
Unit Flow
Cell Formulas
RangeFormula
C3:C31C3=ABS(SUM(E3:AC3))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B34Expression=IFBLANK(B:B)textNO
B1:B2,B35:B1048576Expression=IFBLANK(B:B)textNO



Thanks!

Nick
 
Last edited:
Upvote 0
Hi Nick,

I've not changed the Unit Flow tab at all. I've only changed the Totals tab columns C, F, I, L and O.

Cell Formulas
RangeFormula
C3:C15,O3:O15,L3:L15,I3:I15,F3:F15C3=C2+SUMPRODUCT(('Unit Flow'!$B$3:$B$9999=$B3)*('Unit Flow'!$E$2:$Z$2=C$1),'Unit Flow'!$E$3:$Z$9999)
D3:D15,J3:J15D3=(ABS(542))
E3:E15,Q3:Q15,N3:N15,K3:K15,H3:H15E3=(C3/D3)*100
G3:G15G3=(ABS(570))
M3:M15M3=(ABS(446))
P3:P15P3=(ABS(632))
 
Upvote 0
Will that still match it by date and add or subtract it accordingly? For example if it skips from Aug 6 to Aug 15th with no other moves happening between those dates? If im reading it correctly it should, but just want to make sure.

Thanks again for the help, definitely couldn't have gotten this far without your help
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,689
Members
449,117
Latest member
Aaagu

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