Forum Discussion

Chastitycaprice's avatar
Chastitycaprice
Copper Contributor
Apr 06, 2024

How do I get the Total Sales data to match the latest monthly sales data available in each row?

Hello everyone,    I would like the last column below (Total Sales $) to match the latest monthly sales data for each row, ignoring the purchase qty column information (Example: Jan Pur Qty, Feb Pu...
  • rachel's avatar
    rachel
    Apr 09, 2024

    Chastitycaprice 

     

    Use HSTACK:

     

    =XLOOKUP(1, (HSTACK(N4, P4, R4, T4, V4) <> "") * (HSTACK(N4, P4, R4, T4, V4) <> 0), HSTACK(N4, P4, R4, T4, V4), , , -1)

Resources