Set Up Recommendations?

sevize

New Member
Joined
Mar 7, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
The best way that I have found to set up this sheet up is it to have dates going across the header. The issue with that is it makes it difficult to pull into other sheets or Power Bi. I can't think of a good way to set this up with dates in a column. Below is a sample of one product but it would be for well over 50 products that this has to be repeated for. If I switch Column B and the headers then the date will be repeated and I will have to repeat the product in every row. Am I missing something or is this likely the best way for me to do this?

Blue are hand keyed values, everything that is "out" is used in reports else were. "Feed in" not blue comes in from another sheet.

1709838585819.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1Product DetailsField20232024
2JanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDec
3Calculation232323232324242424242424242424242425252525252525
4Product AFeed In
5Feed In000000375060504955939899
6Feed In232323232324242424242424242424242425252525252525
7Feed In13241302327463485
8Feed In13586725628953716
9Feed In2336
10Feed In44
11Feed In360320315335365387435449
12Feed In416286280279282424414413
13Feed In91244548622817885511816201217617512131924911972252228
14Out611365178193190108602616191416507211027026715284372327
15Feed in192025202024152024201820192025202024152024202015
16Out232323232324242424242424242424242425252525252525
17Out00000037506050495593989968681227610212210210276
18Out00000037506050495593989912012016910694113949471
19Out000000233333554667755555
20Calculation0000000000000004848573612111
21Calculation000000000000000111122222
22Calculation0000000000000001891891891891717171717
23Calculation00000037506050495593989972721127093112939370
24Out000000169919073761011271832512732742737393112939370
25Calculation61853104183375268150111694411446315072113270267348339264199133
26Out00000016991906944101463150721132707393112939370
27Out0000000004320811522012021613000000
28Out-9-21-64-118-204-432351326354390425468550615653650601394214188228296367409
29Out-9-21-64-118-204-432351326354390425468550615653698696546403379420489562605
30Calculation000000416286280279282424414413413413416416416419419419425425
31Calculation-9-21-64-118-204-432-65407411114344136202240237185-22-202-231-191-123-58-16
32Calculation-9-21-64-118-204-432-65407411114344136202240285280130-13-40170137180
33Calculation00000000000000000001890000
Sheet1
Cell Formulas
RangeFormula
P1P1=TEXT(WORKDAY(TODAY(),1),"YYYY")
D3:H3D3=RIGHT($D$1,2)
I3:T3I3=RIGHT($P$1,2)
U3:AA3U3=RIGHT($AB$1,2)
D14:AA14D14=(D13*0.75)+(C13*0.25)
D16:AA16D16=IF(ISBLANK(D5), IF(ISBLANK(D5), IF(D18<1, IF(C18<1, C16,MIN(D$3+1, D6+1)), D6), D6), D6)
D17:AA17D17=IF(ISBLANK(D5), SUMIFS($D18:$AY18,$D16:$AY16,D16)/SUMIFS($D15:$AY15,$D16:$AY16,D16)*D15, D5)
D18:AA18D18=D23+D20
D19:AA19D19=D18/D15
D20:AA20D20=IF(ISBLANK(D5), D22/(SUMIFS($D15:$AY15,$D21:$AY21,D21,$D5:$AY5,""))*D15,0)
D21:O21D21=IF(SUM($D33:$O33)=0, C21, IF(D22=C22, C21, C21+1))
P21:AA21P21=IF(SUM($P33:$AA33)=0, O21, IF(P22=O22, O21, O21+1))
D22:O22D22=IF(ISBLANK(D5), IF(MAX(IF($D33:$O33<0, $D33:$O33))=0,E22, IF(E33=MAX(IF($D33:$O33<0, $D33:$O33)), E33, E22)), 0)
P22:AA22P22=IF(ISBLANK(P5), IF(SUM($P33:$AA33)=0, Q22, IF(Q33<>0, Q33, Q22)), 0)
D23:AA23D23=IF(AND(ISBLANK(D4), ISBLANK(D5)), (SUMIF($D6:$AY6, D6, $D13:$AY13)/SUMIF($D6:$AY6, D6, $D15:$AY15))*D15, SUM(D4:D5))
D24:E24D24=IF(ISBLANK(D7), C24-C26, D7)+D23-D4+IF(MONTH(Month)=6, SUM(C4),0)
F24F24=IF(ISBLANK(F7), E24-E26, F7)+F23-F4+IF(MONTH(Month)=6, SUM(D4:E4),0)
G24G24=IF(ISBLANK(G7), F24-F26, G7)+G23-G4+IF(MONTH(Month)=6, SUM(D4:F4),0)
H24H24=IF(ISBLANK(H7), G24-G26, H7)+H23-H4+IF(MONTH(Month)=6, SUM(D4:G4),0)
I24I24=IF(ISBLANK(I7), H24-H26, I7)+I23-I4+IF(MONTH(Month)=6, SUM(D4:H4),0)
J24J24=IF(ISBLANK(J7), I24-I26, J7)+J23-J4+IF(MONTH(Month)=6, SUM(D4:I4),0)
K24K24=IF(ISBLANK(K7), J24-J26, K7)+K23-K4+IF(MONTH(Month)=6, SUM(D4:J4),0)
L24L24=IF(ISBLANK(L7), K24-K26, L7)+L23-L4+IF(MONTH(Month)=6, SUM(D4:K4),0)
M24M24=IF(ISBLANK(M7), L24-L26, M7)+M23-M4+IF(MONTH(Month)=6, SUM(D4:L4),0)
N24N24=IF(ISBLANK(N7), M24-M26, N7)+N23-N4+IF(MONTH(Month)=6, SUM(D4:M4),0)
O24O24=IF(ISBLANK(O7), N24-N26, O7)+O23-O4+IF(MONTH(Month)=6, SUM(D4:N4),0)
P24:AA24P24=IF(ISBLANK(P7), O24-O26, P7)+P23-P4+IF(MONTH(Month)=6, SUM(D4:O4),0)
D25:AA25D25=IF(ISBLANK(D7),D14+(C25-C26), D8+D14-(0.25*C13))+D9+D10
D26:AA26D26=MIN(D24,D25)
D27:AA27,D31:AA31D27=D24-D26
D28:AA28D28=IF(ISBLANK(D7), C28, (D7+D11))-D13+D23
D29:AA29D29=IF(ISBLANK(D7), C29, (D7+D11))-D13+D18
D30:AA30D30=IF(D12>0,D12,C30+D9+D10)
D32:AA32D32=D29-D30
D33:O33D33=IF(ISBLANK(D5), (IF(MIN($D31:$O31)>0, IF(MIN($D31:$O31)=D31, -MIN(D31,SUMPRODUCT((COLUMN($D33:$AY33)<COLUMN(D33))*$D23:$AY23*ISBLANK($D5:$AY5))), 0), ABS(MIN(D30*0.1+D31,0)))), 0)
P33:AA33P33=IF(AND(ISBLANK(P5), MIN($P31:$AA31)=P31), (IF(MIN($P31:$AA31)+SUM($D33:$O33)>0, -MIN(P31,SUMPRODUCT((COLUMN($D33:$AY33)<COLUMN(P33))*$D23:$AY23*ISBLANK($D5:$AY5)))-SUM($D33:$O33), ABS(MIN(P30*0.1+P31+SUM($D33:$O33),0)))), 0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D31:AN32Other TypeColor scaleNO
D2:AN3Expression=Month=EOMONTH(TODAY(),-1)+1textNO
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,601
Members
449,109
Latest member
Sebas8956

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