Counting number of times the same entry has been entered in the previous 7 days.

%3CLINGO-SUB%20id%3D%22lingo-sub-1326267%22%20slang%3D%22en-US%22%3ECounting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1326267%22%20slang%3D%22en-US%22%3E%3CP%3ELooking%20for%20a%20function%20that%20can%20count%20the%20number%20of%20times%20the%20same%20value%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%20Or%20even%20better%20would%20be%20from%20Sunday%20at%206%3A00am%20to%20Sunday%205%3A59am.%20We%20have%20a%20transaction%20list%20that%20has%20money%20in%20and%20money%20out%2C%20there%20are%20player%20fees%20that%20are%20added%20per%20night%20of%20play%2C%20but%20the%20fee%20is%20capped%20at%20a%20certain%20number.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20enter%20our%20transactions%20with%20an%20auto%20timestamp%20using%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF(A10%26lt%3B%26gt%3B%22%22%2CIF(AND(B10%26lt%3B%26gt%3B%22%22%2CCELL(%22address%22)%3DADDRESS(ROW(A10)%2CCOLUMN(A10)))%2CNOW()%2CIF(CELL(%22address%22)%26lt%3B%26gt%3BADDRESS(ROW(A10)%2CCOLUMN(A10))%2CB10%2CNOW()))%2C%22%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20have%20a%20cell%20that%20shows%20how%20many%20times%20player%20fees%20have%20been%20added%20during%20the%20weekly%20window.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA3%20starts%20a%20transaction%20dollar%2C%20B3%20Timestamp%20using%20the%20function%20above%2C%20C3%20Memo%3C%2FP%3E%3CP%3EI%20would%20place%20the%20formula%20in%20D3.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1326267%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-1327040%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327040%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F631456%22%20target%3D%22_blank%22%3E%40John74Racing%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3EI%20think%20you%20could%20use%20something%20like%20this...%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%3DSUMPRODUCT((%24C%243%3AC3%3D%22Player%20fee%22)*(%24B%243%3AB3%26gt%3B%3DINT((B3-1)%2F7)*7%2B1%2BTIME(6%2C0%2C0))*(%24B%243%3AB3%26lt%3B%3DINT(INT((B3-1)%2F7)*7%2B1%2BTIME(6%2C0%2C0))%2B7%2BTIME(5%2C59%2C59)))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere's%20basically%203%20conditions%20here%3A%3C%2FP%3E%3CP%3E1.%20Check%20column%20C%20for%20%22Player%20fee%22%3C%2FP%3E%3CP%3E2.%20Check%20column%20B%20if%20the%20date%20is%20later%20than%20the%20previous%20Sunday%20at%2006%3A00%3A00%3C%2FP%3E%3CP%3E3.%20Check%20column%20B%20if%20the%20date%20is%20prior%20than%20the%20following%20Sunday%20at%2005%3A59%3A50%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20find%20the%20previous%20Sunday%2C%20we%20use%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3EINT((B3-1)%2F7)*7%2B1%2BTIME(6%2C0%2C0))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20find%20the%20following%20Sunday%2C%20we%20use%20that%20calc%20with%20a%20slight%20variation%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3EINT(INT((B3-1)%2F7)*7%2B1%2BTIME(6%2C0%2C0))%2B7%2BTIME(5%2C59%2C59)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%20the%20above%20date%20checks%20%3CEM%3Einclude%3C%2FEM%3E%20those%20times%20(less%2Fgreater%20%3CEM%3Ethan%3C%2FEM%3E%20%3CSTRONG%3E%3CEM%3Eor%20equal%20to%3C%2FEM%3E%3C%2FSTRONG%3E).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEnter%20formula%20in%20D3%20and%20copy%20down.%20Since%20your%20data%20is%20transactional%2C%20it%20will%20count%20higher%20as%20data%20goes%20down.%20Meaning%20you%20don't%20know%20the%20exact%20end%20of%20your%20data%20set.%20If%20you%20did%2C%20you%20could%20plug%20that%20into%20the%20formula%20and%20all%20calculations%20would%20be%20for%20the%20same%20time%20period.%20This%20is%20more%20like%20a%20running%20total%20going%20down%2C%20so%20your%20data%20should%20be%20sorted%20ascending.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHTH%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1327195%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327195%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10842%22%20target%3D%22_blank%22%3E%40Zack%20Barresse%3C%2FA%3EI%20think%20I%20followed%20what%20you%20have%20there%20and%20it%20is%20clever.%26nbsp%3B%20My%20question%20to%20you%20is%20why%20isn't%20the%26nbsp%3Bfollowing%20Sunday%20calc%20just%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-python%22%3E%3CCODE%3EINT((B3-1)%2F7)*7%2B8%2BTIME(5%2C59%2C59)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethat%20said%20aren't%20you%20missing%20that%200.0001%25%20of%20the%20cases%20where%20it%20is%20%26gt%3B%205%3A59%3A59%20but%20%26lt%3B%206%3A00%3A00%20and%20instead%20you%20should%20just%20make%20the%20following%20sunday%20comparison%20%26lt%3B%20INT((B3-1)%2F7)*7%2B8%2BTIME(6%2C0%2C0)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F631456%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%3E%40John74Racing%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%20Assuming%20Zack's%20comparisons%20are%20correct%20(they%20appear%20right%20on%20the%20surface%20except%20my%20comments)%20I%20think%20you%20could%20also%20use%20%3Dcountifs(....)%20with%20Zack's%203%20comparisons.%26nbsp%3B%20I%20think%20the%20result%20should%20be%20the%20same%20but%20my%20understanding%20is%20that%20sumproduct%20is%20an%20array%20formula%20that%20if%20used%20in%20high%20quantity%20could%20slow%20down%20the%20sheet.%3C%2FP%3E%3CP%3EBUT%20my%20real%20reason%20for%20replying%20is%20to%20ask%20you%20about%20that%20%22auto%20timestamp%22%20and%20how%20it%20works.%26nbsp%3B%20you%20say%20the%20timestamp%20is%20in%20column%20B%20but%20the%20values%20in%20the%20formula%20are%20looking%20to%20see%20if%20it%20is%20'A10'.%26nbsp%3B%20I%20know%20row%2010%20is%20just%20the%20example%20row%20you%20picked%20but%20I%20don't%20get%20the%20column%20A%20nor%20do%20I%20get%20how%20it%20works%20exactly.%26nbsp%3B%20I%20get%20that%20it%20is%20a%20circular%20reference%20and%20assume%20the%20trick%20is%20partly%20in%20that%20it%20is%20entered%20as%20an%20array%20formula%20(ctrl%2Bshift%2Benter)%20and%20maybe%20has%20something%20to%20do%20with%20the%20convoluted%20comparison%20between%20%3CFONT%3ECELL(%22address%22)%20and%20ADDRESS(ROW(A10)%2CCOLUMN(A10)%3C%2FFONT%3E.%26nbsp%3B%20But%20that%20said%20if%20A10%20is%20blank%20then%20B10%20is%20blank%20(OK%20good)%20but%20if%20A10%26lt%3B%26gt%3B%22%22%20then%20it%20falls%20into%20the%20next%20condition%20which%20is%20always%20false%20because%20B10%26lt%3B%26gt%3BA10%20so%20it%20will%20always%20fall%20into%20the%20next%20condition%20which%20is%20always%20true%20because%20B10%26lt%3B%26gt%3BA10%20which%20means%20it%20is%20assigned%20itself%20B10%20but%20B10%20is%20still%20%22%22.%26nbsp%3B%20I%20tried%20your%20sheet%20and%20couldn't%20get%20that%20timestamp%20to%20work%20for%20me.%26nbsp%3B%20Just%20wondering%20what%20I'm%20missing%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1327274%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327274%22%20slang%3D%22en-US%22%3EHmm%2C%20yes%2C%20good%20catch%20on%20the%20formula%20time%20discrepancy.%3CBR%20%2F%3E%3CBR%20%2F%3ESumproduct%20can%20affect%20calculation%20speeds%20over%20many%2C%20many%20thousands%20of%20cells.%20If%20the%20workbook%20was%20going%20to%20grow%20that%20big%20it%20might%20be%20a%20concern%2C%20but%20I%20didn't%20get%20that%20impression%20from%20looking%20at%20it.%20If%20it%20were%20going%20to%20be%20a%20potential%20issue%2C%20I'd%20probably%20look%20at%20using%20Power%20Query%20instead%20of%20formulas%20tbh.%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%2C%20the%20formula%20works%20because%20the%20OP%20set%20iterative%20calculations%20to%20be%20on%2C%20so%20circular%20references%20are%20allowed%20with%20a%20max%20iteration%20of%201.%20You%20can%20see%20this%20by%20going%20to%20File%20%26gt%3B%20Options%20%26gt%3B%20Formulas%20%26gt%3B%20Calculation%20options.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1327308%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327308%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10842%22%20target%3D%22_blank%22%3E%40Zack%20Barresse%3C%2FA%3E%26nbsp%3B%20absolutely%20agree%20that%20sumproduct%20isn't%20a%20problem%20unless%20the%20sheet%20get%20very%20large.%26nbsp%3B%20That%20said%20I%20just%20try%20to%20make%20it%20practice%20to%20use%20alternative%20if%2Fwhen%20I%20can%20and%20this%20being%20a%20poker%20sheet%20with%20many%20players%20potentially%20going%20over%20many%20days%2C%20weeks%2C%20months...%20I%20don't%20know%20it%20may%20get%20rather%20large%20and%20it%20is%20much%20easier%20to%20start%20with%20the%20countifs%20now.%26nbsp%3B%20Powerquery%2C%20that%20is%20a%20whole%20different%20beast%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3EBut%20again%20I%20digress%20as%20it%20is%20that%20auto%20time%20stamp%20formula%20that%20has%20me%20in%20a%20quagmier%3C%2FP%3E%3CP%3EYes%20I%20see%20the%20circular%20ref%20but%20my%20bigger%20point%20was%20that%20it%20just%20didn't%20work%20when%20I%20tried%20it%20on%20that%20sheet%20nor%20does%20it%20make%20sense%20that%20it%20should%20work%20when%20I%20evaluated%20it.%26nbsp%3B%20I%20tried%20variations%20on%20the%20formula%20and%20still%20couldn't%20get%20it%20to%20work%20either.%26nbsp%3B%20Since%20it%20appears%20to%20work%20for%20the%20OP%20I'm%20still%20confuzzled%20why%20I%20don't%20get%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329378%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329378%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3BI%20am%20pretty%20green%20in%20excel%20and%20searched%20the%20formula.%20So%20the%20whole%20sheet%20is%20to%20manage%20an%20online%20poker%20game%2C%20a%20pretty%20large%20one%20at%20that.%20In%20column%20A%20we%20enter%20transaction%20values%20of%20Chips%20added%2C%20payments%20made%2C%20cashouts%2C%20and%20payer%20fees%20for%20every%20night%20they%20play.%20The%20time%20stamp%20is%20an%20important%20piece%20to%20mark%20what%20happened%2C%20when%2C%20with%20the%20formula%20I%20found%20it%20updates%20the%20timestamp%20if%20the%20enter%20is%20edited%20in%20column%20A.%20so%20if%20someone%20went%20and%20altered%20a%20payment%20from%20a%20few%20days%20ago%20it%20would%20timestamp%20today%20and%20i%20could%20see%20a%20discrepancy.%20so%20not%20sure%20if%20thats%20the%20best%20formula%20but%20it%20seems%20to%20be%20working%20well.%20I%20am%20more%20than%20willing%20to%20share%20the%20file%20with%20someone%20but%20i%20dont%20want%20to%20post%20it%20publicly.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329492%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329492%22%20slang%3D%22en-US%22%3Eencase%20the%20formula%20with%20and%20if%20statement%3CBR%20%2F%3E%3Dif(C3%3D%22%22%2C%22%22%2Csumproduct(%E2%80%A6)%20)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1329384%22%20slang%3D%22en-US%22%3ERe%3A%20Counting%20number%20of%20times%20the%20same%20entry%20has%20been%20entered%20in%20the%20previous%207%20days.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1329384%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10842%22%20target%3D%22_blank%22%3E%40Zack%20Barresse%3C%2FA%3E%26nbsp%3BThis%20is%20great!%20Is%20there%20a%20function%20we%20could%20add%20so%20that%20if%20there%20is%20no%20data%20in%20column%20C%20the%20entry%20appears%20blank%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%20so%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Looking for a function that can count the number of times the same value entry has been entered in the previous 7 days. Or even better would be from Sunday at 6:00am to Sunday 5:59am. We have a transaction list that has money in and money out, there are player fees that are added per night of play, but the fee is capped at a certain number. 

We enter our transactions with an auto timestamp using: 

=IF(A10<>"",IF(AND(B10<>"",CELL("address")=ADDRESS(ROW(A10),COLUMN(A10))),NOW(),IF(CELL("address")<>ADDRESS(ROW(A10),COLUMN(A10)),B10,NOW())),"")

 

I would like to have a cell that shows how many times player fees have been added during the weekly window.

 

A3 starts a transaction dollar, B3 Timestamp using the function above, C3 Memo

I would place the formula in D3. 

 

 

9 Replies
Highlighted

If you just want to count , how many times the player fee has been added, a simple COUNTIF can be used.

=countif(cell C3, "="PLAYER FEE")

tHE OUTPUT WILL BE 1 OR 0. iT CAN BE COUNTED.

IF YOU WANT CUMULATIVE SUM, MAKE ONE MORE COLUMN AND ADD THE UPPER CELL WITH THE CELL TO THE LEFT.

 

I hope it helps.

@John74Racing 

Highlighted

@John74Racing 

Hi there,

I think you could use something like this...

=SUMPRODUCT(($C$3:C3="Player fee")*($B$3:B3>=INT((B3-1)/7)*7+1+TIME(6,0,0))*($B$3:B3<=INT(INT((B3-1)/7)*7+1+TIME(6,0,0))+7+TIME(5,59,59)))

 

There's basically 3 conditions here:

1. Check column C for "Player fee"

2. Check column B if the date is later than the previous Sunday at 06:00:00

3. Check column B if the date is prior than the following Sunday at 05:59:50

 

To find the previous Sunday, we use:

INT((B3-1)/7)*7+1+TIME(6,0,0))

 

To find the following Sunday, we use that calc with a slight variation:

INT(INT((B3-1)/7)*7+1+TIME(6,0,0))+7+TIME(5,59,59)

 

Note the above date checks include those times (less/greater than or equal to).

 

Enter formula in D3 and copy down. Since your data is transactional, it will count higher as data goes down. Meaning you don't know the exact end of your data set. If you did, you could plug that into the formula and all calculations would be for the same time period. This is more like a running total going down, so your data should be sorted ascending. 

 

HTH

Highlighted

@Zack BarresseI think I followed what you have there and it is clever.  My question to you is why isn't the following Sunday calc just:

 

INT((B3-1)/7)*7+8+TIME(5,59,59)

 

that said aren't you missing that 0.0001% of the cases where it is > 5:59:59 but < 6:00:00 and instead you should just make the following sunday comparison < INT((B3-1)/7)*7+8+TIME(6,0,0)

 

@John74Racing  Assuming Zack's comparisons are correct (they appear right on the surface except my comments) I think you could also use =countifs(....) with Zack's 3 comparisons.  I think the result should be the same but my understanding is that sumproduct is an array formula that if used in high quantity could slow down the sheet.

BUT my real reason for replying is to ask you about that "auto timestamp" and how it works.  you say the timestamp is in column B but the values in the formula are looking to see if it is 'A10'.  I know row 10 is just the example row you picked but I don't get the column A nor do I get how it works exactly.  I get that it is a circular reference and assume the trick is partly in that it is entered as an array formula (ctrl+shift+enter) and maybe has something to do with the convoluted comparison between CELL("address") and ADDRESS(ROW(A10),COLUMN(A10).  But that said if A10 is blank then B10 is blank (OK good) but if A10<>"" then it falls into the next condition which is always false because B10<>A10 so it will always fall into the next condition which is always true because B10<>A10 which means it is assigned itself B10 but B10 is still "".  I tried your sheet and couldn't get that timestamp to work for me.  Just wondering what I'm missing 

Highlighted
Hmm, yes, good catch on the formula time discrepancy.

Sumproduct can affect calculation speeds over many, many thousands of cells. If the workbook was going to grow that big it might be a concern, but I didn't get that impression from looking at it. If it were going to be a potential issue, I'd probably look at using Power Query instead of formulas tbh.

Also, the formula works because the OP set iterative calculations to be on, so circular references are allowed with a max iteration of 1. You can see this by going to File > Options > Formulas > Calculation options.
Highlighted

@Zack Barresse  absolutely agree that sumproduct isn't a problem unless the sheet get very large.  That said I just try to make it practice to use alternative if/when I can and this being a poker sheet with many players potentially going over many days, weeks, months... I don't know it may get rather large and it is much easier to start with the countifs now.  Powerquery, that is a whole different beast

But again I digress as it is that auto time stamp formula that has me in a quagmier

Yes I see the circular ref but my bigger point was that it just didn't work when I tried it on that sheet nor does it make sense that it should work when I evaluated it.  I tried variations on the formula and still couldn't get it to work either.  Since it appears to work for the OP I'm still confuzzled why I don't get it.

Highlighted

@mtarler I am pretty green in excel and searched the formula. So the whole sheet is to manage an online poker game, a pretty large one at that. In column A we enter transaction values of Chips added, payments made, cashouts, and payer fees for every night they play. The time stamp is an important piece to mark what happened, when, with the formula I found it updates the timestamp if the enter is edited in column A. so if someone went and altered a payment from a few days ago it would timestamp today and i could see a discrepancy. so not sure if thats the best formula but it seems to be working well. I am more than willing to share the file with someone but i dont want to post it publicly. 

Highlighted

@Zack Barresse This is great! Is there a function we could add so that if there is no data in column C the entry appears blank?

 

thank you so much!

Highlighted
encase the formula with and if statement
=if(C3="","",sumproduct(…) )
Highlighted

@John74Racing 

You can use an IF statement, as @mtarler showed, or you could alter the format (my preference). Why? It's about downstream calculations. While a simple =SomeCell will treat "" as a zero, as well as =SUM(SomeCell), my preference is to have an actual zero value if that fields purpose is numerical. If I don't want to show the zero value, I'll adjust the format accordingly. It can get tricky, but cell formatting (i.e. Custom) works like this:

Greate than zero; Less than zero; Equal to zero; Text

 

So if you look at the Comma style format, it looks like this:

_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)

 

You'll notice each part separated by a semi-colon, along with some special characters which represents how you want to show your numbers. If you leave that section blank, nothing is shown for the format, although the value still resides in the cell.

 

A fun trick to play on co-workers is to format the cell like: ;;;

This will not show any values. Muwahaha! Don't tell them I told you that lol.

 

Some great formatting resources:

https://exceljet.net/custom-number-formats

https://www.exceltactics.com/definitive-guide-custom-number-formats-excel/