SOLVED

Calculating values in a row

%3CLINGO-SUB%20id%3D%22lingo-sub-2401281%22%20slang%3D%22en-US%22%3ECalculating%20values%20in%20a%20row%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2401281%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20calculate%20the%20average%20values%20in%20a%20row%20and%20it%20is%20to%20be%20updated%20daily.%3C%2FP%3E%3CP%3EI%20need%20to%20always%20use%20the%20same%20start%20cell%2C%20but%20the%20value%20will%20change%20with%20each%20new%20days%20value.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2401281%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2401347%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20values%20in%20a%20row%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2401347%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1067610%22%20target%3D%22_blank%22%3E%40eingram25%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20might%20use%20a%20formula%20such%20as%20%3DAVERAGE(D2%3AZZ2)%20since%20AVERAGE%20ignores%20empty%20cells.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2401526%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20values%20in%20a%20row%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2401526%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1067610%22%20target%3D%22_blank%22%3E%40eingram25%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUnless%20there's%20some%20compelling%20reason%20to%20have%20the%20series%20of%20values%20in%20a%20row%20instead%20of%20a%20column%2C%20a%20very%20clean%20way%20to%20accomplish%20this%20ongoing%20series%20is%20to%20create%20a%20table%2C%20to%20which%20you%20can%20add%20values%20ad-infinitum%20(almost).%20And%20the%20formula%20can%20read%20very%20simply%20%3DAVERAGE(Table1%5BValues%5D)%20as%20shown%20in%20the%20image%20below.%20I've%20also%20attached%20the%20spreadsheet%20that%20I%20created%20to%20illustrate%20this%20approach.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mathetes_0-1622477052371.png%22%20style%3D%22width%3A%20524px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F285130i501974EF321E217C%2Fimage-dimensions%2F524x468%3Fv%3Dv2%22%20width%3D%22524%22%20height%3D%22468%22%20role%3D%22button%22%20title%3D%22mathetes_0-1622477052371.png%22%20alt%3D%22mathetes_0-1622477052371.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403347%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20values%20in%20a%20row%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403347%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20have%20to%20redesign%20the%20spreadsheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2403352%22%20slang%3D%22en-US%22%3ERe%3A%20Calculating%20values%20in%20a%20row%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2403352%22%20slang%3D%22en-US%22%3EI%20need%20the%20first%20cell%20to%20remain%20the%20same%2C%20but%20each%20day%20an%20additional%20cell%20is%20added.%20If%20I%20simply%20copy%20the%20formula%20to%20the%20next%20day%2C%20the%20first%20cell%20is%20changed.%3CBR%20%2F%3ESee%20the%20spreadsheet%20I%20attached%20to%20mathetes%20answer.%3C%2FLINGO-BODY%3E
Occasional Contributor

I need to calculate the average values in a row and it is to be updated daily.

I need to always use the same start cell, but the value will change with each new days value.

9 Replies

@eingram25 

You might use a formula such as =AVERAGE(D2:ZZ2) since AVERAGE ignores empty cells.

@eingram25 

 

Unless there's some compelling reason to have the series of values in a row instead of a column, a very clean way to accomplish this ongoing series is to create a table, to which you can add values ad-infinitum (almost). And the formula can read very simply =AVERAGE(Table1[Values]) as shown in the image below. I've also attached the spreadsheet that I created to illustrate this approach.

 

mathetes_0-1622477052371.png

 

@mathetes 

I would have to redesign the spreadsheet.

I need the first cell to remain the same, but each day an additional cell is added. If I simply copy the formula to the next day, the first cell is changed.
See the spreadsheet I attached to mathetes answer.
best response confirmed by eingram25 (Occasional Contributor)
Solution

@eingram25 

Change B3 to $B3 in the formula. This will "fix" the column letter B.

@eingram25 

 

Yes. And (IMHO) you should redesign it. And it takes nothing more than a Copy.....Paste Special (in which you select the Transpose option). See the attached.  Then just designate that an Excel Table. I've created a couple of averages in the attached.

 

In Excel, a database typically works better if each new row is added to the bottom. What you have is exactly that: a database. Many of the functions, although they can work with data arrayed as you have it, are more effectively deployed with the records stacked on top of one another.  If you search through Google or YouTube for examples of people working in Excel with tables of data, you will find almost invariably--I'm confident in this--that the tables are arrayed vertically, not horizontally.

@eingram25 

As a comment, why don't to calculate Time in Between as

image.png

or

image.png

Thanks! this is what I had forgotten. (I haven't used excel for several years)
Thank you very much! I will try it. I/m going to start a new sheet by copying and transposing as you suggested