+ Reply to Thread
Results 1 to 2 of 2

Changing table values based on last occurrence

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2021
    Location
    london, england
    MS-Off Ver
    2016
    Posts
    4

    Changing table values based on last occurrence

    Hi,

    I have a pivottable with three columns. The last Y values of a and d are zero, therefore, I would like to change all the Z values corresponding to a and d to be 0. Is there a way to accomplish this in excel? I can get the index of the rows where 0 appears but am not sure what to do after that.

    X Y Z
    a 4 0
    b 3 3
    c 5 5
    d 6 0
    a 2 0
    e 1 0
    f 3 3
    c 5 5
    a 0 0
    s 2 2
    b 2 0
    d 0 0

    Thanks,
    John

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,502

    Re: Changing table values based on last occurrence

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 12
    Last Post: 09-20-2019, 08:52 PM
  2. [SOLVED] Changing values in a table based on drop down menu selection
    By Dropsix in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-03-2018, 12:09 PM
  3. Replies: 0
    Last Post: 07-01-2015, 09:49 AM
  4. Replies: 7
    Last Post: 03-07-2015, 01:51 AM
  5. Replies: 0
    Last Post: 07-26-2012, 08:18 AM
  6. changing cell color based on changing values
    By tvonbehren in forum Excel General
    Replies: 2
    Last Post: 09-16-2009, 12:33 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1