+ Reply to Thread
Results 1 to 5 of 5

Change value of cells in a column based on latest month's non-zero value

  1. #1
    Registered User
    Join Date
    09-17-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    21

    Change value of cells in a column based on latest month's non-zero value

    Hi,

    I would really appreciate it if anyone can help me.

    I would like to change the value of cells in a column based on the latest month's non-zero value.

    In the attached sheet, the cells in column named VALUE must change values based on the latest months non zero figures, ie. they should automatically change value to match figures of October, since october is the latest month with non-zero values. When November values get filled, then the Value column must automatically change to reflect values of November since November column has the latest non-zero values.
    Attached Files Attached Files

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Change value of cells in a column based on latest month's non-zero value

    since october is the latest month with non-zero values
    October has all Zero Values, Sep has non zero values.. :O

    Am I missing something?
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    09-17-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    21
    Quote Originally Posted by NeedForExcel View Post
    October has all Zero Values, Sep has non zero values.. :O

    Am I missing something?
    Sorry I meant September which has non zero values and whenever October gets filled in then the Column VALUE should reflect that and so on and so forth for November and December

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Change value of cells in a column based on latest month's non-zero value

    Put this in A3

    =INDEX(B3:E3,1,MATCH(TRUE,B3:E3>0,0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Drag Down as required.

  5. #5
    Registered User
    Join Date
    09-17-2014
    Location
    Singapore
    MS-Off Ver
    2013
    Posts
    21

    Talking Re: Change value of cells in a column based on latest month's non-zero value

    Thanks that works perfectly! Appreciate your help

+ 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. VBA- Filter Pivot table based on latest and 2nd latest date in column
    By ziyan89 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-29-2015, 11:18 AM
  2. Need a fumula to change month based on the spreadsheets month
    By marah64 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2015, 07:00 PM
  3. Replies: 8
    Last Post: 04-08-2015, 10:10 PM
  4. Replies: 18
    Last Post: 09-08-2014, 05:06 PM
  5. [SOLVED] Pivot Table Not Grouping by Month for Latest Month (groups > 7/20/2013)
    By justforthis1 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 09-04-2013, 12:28 PM
  6. Replies: 9
    Last Post: 04-30-2013, 03:21 AM
  7. Copy latest date of every month from a column in excel 2007
    By rt99 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2013, 11:49 AM

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