Forum Discussion

WarrenLord_Edgar's avatar
WarrenLord_Edgar
Copper Contributor
Feb 12, 2021

Updating a daily total

Hello. I have a spreadsheet with columns showing daily costs for several items across the page with the date at the far left and daily totals at the far right. At the top of the page, I have a large cell that displays the current daily total. At the moment I have to manually change it each day, by just copying the daily total. There must be a way to change it automatically using the date, but I can't work it out.  Sorry it the description is not clear. Any assistance would be greatly appreciated.

2 Replies

  • Rajesh_Sinha's avatar
    Rajesh_Sinha
    Iron Contributor

    WarrenLord_Edgar 

     

    Its's as simple, and no need to convert data in a TABLE, you may use any of these formula:

    =LOOKUP(2,1/(ISNUMBER(L:L)),L:L)

     

    or 

    =LOOKUP(2,1/(L:L<>""),L:L)

    Or

    =INDEX($L$7:$L$10,COUNTA($L$7:$L$10))

     

    Adjust cell references in the formula as needed.

  • Twifoo's avatar
    Twifoo
    Silver Contributor

    WarrenLord_Edgar 

    You may need to convert your range into a table by selecting any cell within the range and pressing Ctrl+T. The table shall be named Table1 but you can always replace it with a descriptive name you prefer. Thereafter, construct your formula as shown below:

     

Resources