Consulting

Results 1 to 8 of 8

Thread: Transform count data date wise to Dates

  1. #1

    Transform count data date wise to Dates

    Hi Team - I've the customer request count given date wise. There are days in which customer will not have any request and the value will be blank or zero for those dates. I would like to get the output date wise wherever customer had at least 1 request. Please find attached the data format, can it be done through formula or macros? Appreciate the help. Thanks.
    Attached Files Attached Files

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,797
    Location
    Do you have a version with FILTER? If so, clear the output table of dates, then enter:
    =FILTER($B$2:$AE$2,B3:AE3>0)
    in B11 and copy down.
    Last edited by Aussiebear; 12-10-2024 at 03:12 AM.
    Be as you wish to seem

  3. #3
    This formula works only for the first cell in each row. Rest of the cells in the row suppose to show different date for which the value is not blank or not zero. Please see the attached.
    Attached Files Attached Files

  4. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,959
    @tsr_80, could you address the question I asked here: http://www.vbaexpress.com/forum/show...l=1#post425073
    Knowing that would help in answering this question.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  5. #5
    Responded for the thread mentioned. In brief, TOCOL function is available in my excel.

  6. #6
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,959
    In that case, Aflatoon's solution will work but it needs to be put into a single cell (no CSE (array-entering) required) and copied down. See cells B16:B19 in Sheet1 of the attached.
    Separately, sheet Sheet1 PQ contains a Power Query solution, but it's ugly and I would NOT recommend using it (it loses the date values in the header row).
    Attached Files Attached Files
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  7. #7
    The excel formula works. Thanks and Great but i still miss the understanding. Can you please help explain the logic? How entering the formula in one cell does fill the dates for the cells in the row?

  8. #8
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,797
    Location
    FILTER is a dynamic array function, which is relatively new functionality allowing formula results to spill into other cells as needed.
    Be as you wish to seem

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •