Home

Copying a formula down doesn't yield results

%3CLINGO-SUB%20id%3D%22lingo-sub-216214%22%20slang%3D%22en-US%22%3ECopying%20a%20formula%20down%20doesn't%20yield%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216214%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20recreate%20a%20formula%20from%20an%20excel%20template%20that%20a%20colleague%20uses%20(doesn't%20make%20sense%20to%20copy%20the%20entire%20template%20as%20I%20only%20need%20a%20few%20functions%20from%20it).%20I'm%20not%20copying%20and%20pasting%20from%20the%20template%20(as%20it%20then%20wants%20to%20link%20to%20that%20template)%2C%20instead%20I'm%20writing%20the%20formulas%20from%20scratch%20based%20on%20the%20names%20of%20my%20pages%20within%20my%20spreadsheet.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20trying%20to%20get%20the%20first%20page%20to%20look%20at%20the%20second%20page%20-%20I%20would%20like%20to%20find%20the%20earliest%20date%20(and%20the%20latest%20date%20-%20i.e.%20start%20and%20end%20dates)%20under%20each%20project%20heading%20(i.e.%20media%2C%20logistics%2C%20etc.).%20I%20can%20get%20the%20first%20one%2C%20but%20cannot%20get%20the%20rest%20to%20fill%20in%20(when%20I%20drag%20down%20the%20formula%20or%20rewrite%20it).%20It%20also%20doesn't%20work%20if%20I%20resort%20the%20second%20page.%26nbsp%3B%3C%2FP%3E%3CP%3ECurrently%20my%20formula%20to%20find%20the%20earliest%20start%20date%20is%20this%3A%26nbsp%3B%3DMIN(IF((Tracker%5BProject%20Name%5D%3D%5B%40%5BProject%20List%5D%5D)*(Tracker%5BStart%5D%26gt%3B0)%2CTracker%5BStart%5D))%3C%2FP%3E%3CP%3EI've%20even%20copied%20over%20the%20coding%20from%20the%20template%20that%20worked%20(and%20made%20adjustments%20to%20it%20as%20needed).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20feels%20like%20it%20should%20be%20a%20simple%20thing%2C%20but%20it's%20been%20anything%20but.%3C%2FP%3E%3CP%3EThanks%20for%20the%20help%2C%3C%2FP%3E%3CP%3EErin%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-216214%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENeed%20Help%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216572%22%20slang%3D%22en-US%22%3ERe%3A%20Copying%20a%20formula%20down%20doesn't%20yield%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216572%22%20slang%3D%22en-US%22%3E%3CP%3EErin%2C%20that's%3C%2FP%3E%0A%3CPRE%3E%3DAGGREGATE(14%2C6%2C1%2F(Tracker%5BProject%20Name%5D%3D%5B%40%5BProject%20List%5D%5D)%2F(Tracker%5BEnd%5D%26gt%3B0)*Tracker%5BEnd%5D%2C1)%3C%2FPRE%3E%0A%3CP%3E%2C%20please%20check%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Faggregate-function-43b9278e-6aa7-4f17-92b6-e19993fa26df%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Faggregate-function-43b9278e-6aa7-4f17-92b6-e19993fa26df%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFile%20is%20attached%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216534%22%20slang%3D%22en-US%22%3ERe%3A%20Copying%20a%20formula%20down%20doesn't%20yield%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216534%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20fantastic%2C%20thank%20you%20so%20much!%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20the%20end%20formula%20be%20the%20same%20(obviously%20using%20End%20instead%20of%20Start)%20or%20would%20there%20be%20other%20changes%3F%20Trying%20to%20find%20the%20latest%20End%20date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216234%22%20slang%3D%22en-US%22%3ERe%3A%20Copying%20a%20formula%20down%20doesn't%20yield%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216234%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Erin%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20the%20screenshot%2C%20it's%20more%20clear%20now.%20In%20general%20your%20formula%20shall%20work%2C%20but%20only%20if%20you%20use%20it%20as%20array%20one%20(use%20Ctrl%2BShift%2BEnter%20to%20enter%20the%20formula).%20Regular%20(non-array)%20formula%20equivalent%20could%20be%3C%2FP%3E%0A%3CPRE%3E%3DAGGREGATE(15%2C6%2C1%2F(Tracker%5BProject%20Name%5D%3D%5B%40%5BProject%20List%5D%5D)%2F(Tracker%5BStart%5D%26gt%3B0)*Tracker%5BStart%5D%2C1)%3C%2FPRE%3E%0A%3CP%3EBoth%20are%20in%20attached%20file.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216227%22%20slang%3D%22en-US%22%3ERe%3A%20Copying%20a%20formula%20down%20doesn't%20yield%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216227%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20those%20naming%20conventions%20are%20correct.%20Unfortunately%20I%20am%20not%20permitted%20to%20upload%20the%20document%2C%20however%20I%20have%20attached%20a%20couple%20of%20screen%20shots%20so%20you%20can%20hopefully%20see%20what%20I'm%20talking%20about.%20I'm%20trying%20to%20get%20the%20start%2Fend%20dates%20for%20each%20project%20(each%20of%20which%20has%20multiple%20tasks%20listed%20under%20them%2C%20with%20different%20dates%20on%20the%20project%20tracker%20page%20-%20table%20name%20is%20'tracker')%20to%20automatically%20go%20into%20the%20project%20overview%20page%20(table%20name%20is%20'overview').%20For%20some%20items%20it%20appears%20to%20be%20working%2C%20for%20others%20i%20still%20only%20get%200-Jan-00%2C%20even%20though%20the%20formulas%20are%20the%20same.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-216220%22%20slang%3D%22en-US%22%3ERe%3A%20Copying%20a%20formula%20down%20doesn't%20yield%20results%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-216220%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Erin%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20use%20formula%20with%20structured%20references%20for%20Excel%20tables%2C%20it%20depends%20only%20on%20Table%20names%20and%20their%20column%20names.%20You%20don't%20need%20to%20drag%20cell%20with%20formula%20down%2C%20it%20shall%20be%20autofilled%20in%20table%20column.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20work%20with%20tables%20do%20you%20have%20one%20table%20with%20Project%20List%20column%20and%20another%20table%20is%20Tracker%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20attach%20small%20sample%20file%20it'll%20be%20easier%20to%20say%20what's%20wrong.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Erin McKeage
New Contributor

Hi,

 

I'm trying to recreate a formula from an excel template that a colleague uses (doesn't make sense to copy the entire template as I only need a few functions from it). I'm not copying and pasting from the template (as it then wants to link to that template), instead I'm writing the formulas from scratch based on the names of my pages within my spreadsheet. 

 

I'm trying to get the first page to look at the second page - I would like to find the earliest date (and the latest date - i.e. start and end dates) under each project heading (i.e. media, logistics, etc.). I can get the first one, but cannot get the rest to fill in (when I drag down the formula or rewrite it). It also doesn't work if I resort the second page. 

Currently my formula to find the earliest start date is this: =MIN(IF((Tracker[Project Name]=[@[Project List]])*(Tracker[Start]>0),Tracker[Start]))

I've even copied over the coding from the template that worked (and made adjustments to it as needed). 

 

This feels like it should be a simple thing, but it's been anything but.

Thanks for the help,

Erin

5 Replies

Hi Erin,

 

You use formula with structured references for Excel tables, it depends only on Table names and their column names. You don't need to drag cell with formula down, it shall be autofilled in table column.

 

If you work with tables do you have one table with Project List column and another table is Tracker?

 

If you attach small sample file it'll be easier to say what's wrong.

Highlighted

Hi Sergei,

 

Yes, those naming conventions are correct. Unfortunately I am not permitted to upload the document, however I have attached a couple of screen shots so you can hopefully see what I'm talking about. I'm trying to get the start/end dates for each project (each of which has multiple tasks listed under them, with different dates on the project tracker page - table name is 'tracker') to automatically go into the project overview page (table name is 'overview'). For some items it appears to be working, for others i still only get 0-Jan-00, even though the formulas are the same.

Hi Erin,

 

Thank you for the screenshot, it's more clear now. In general your formula shall work, but only if you use it as array one (use Ctrl+Shift+Enter to enter the formula). Regular (non-array) formula equivalent could be

=AGGREGATE(15,6,1/(Tracker[Project Name]=[@[Project List]])/(Tracker[Start]>0)*Tracker[Start],1)

Both are in attached file.

 

That's fantastic, thank you so much! 

 

Would the end formula be the same (obviously using End instead of Start) or would there be other changes? Trying to find the latest End date.

 

Erin, that's

=AGGREGATE(14,6,1/(Tracker[Project Name]=[@[Project List]])/(Tracker[End]>0)*Tracker[End],1)

, please check https://support.office.com/en-us/article/aggregate-function-43b9278e-6aa7-4f17-92b6-e19993fa26df

 

File is attached

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies