+ Reply to Thread
Results 1 to 6 of 6

select a cell value based on current month & future months not having a value

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    7

    select a cell value based on current month & future months not having a value

    Hi,

    I am trying to create a stock valuation sheet where year to date (YTD)total = the current month total.
    To this end I have created my 12 months Jan - Dec with a column for closing stock in each month.
    The opening stock value in YTD is fixed in the YTD closing stock I need the current months closing value to be displayed.
    I have tried nesting IF functions, the formula errors with too many functions.
    any ideas how I can create a formula which selects the last available amount?

  2. #2
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: select a cell value based on current month & future months not having a value

    Hi Khalos1208

    I am having difficulty in visualising what you are trying to achieve. Perhaps if you were to upload a spreadsheet with what you want, it will help everyone understand.

    Regards
    Alastair

  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: select a cell value based on current month & future months not having a value

    Hi, i have attached a file as requested.
    in the example I need the latest month's Close Value in this case Column Q for May to populate Column G for YTD. When June gets a value it must replace May etc.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: select a cell value based on current month & future months not having a value

    Hi Khalos1208

    I am still not sure what you are trying to achieve. However, I have a way of doing as you ask. If you put the Column reference in E1 and G1, it will pull the data from that column. I hope this is what you want.

    I have taken the opportunity to show another formula in F5

    Regards
    Alastair
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-21-2014
    Location
    Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: select a cell value based on current month & future months not having a value

    Hi Alistair,
    The Formula in column F is excellent thanks. That's really useful.
    I'll try to explain the problem a little better.
    The YTD open stock will always be the same as the open from March. This is fixed.
    The Purchase in YTD will be the sum of all the purchases from each month ( great formula Column F)
    The Closing Stock in YTD must be the last closing stock value available. ie at the end of April 125, End of May YTD changes to 150, End of June YTD changes to 175, End of July changes to 190. ETC.
    This allows us to calculate a GP for the YTD & also for the current month.
    Hope this makes sense
    Khaos.

  6. #6
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: select a cell value based on current month & future months not having a value

    Hi Kalos

    So are you happy with the spreadsheet or do we need to do anything else?

    Regards
    Alastair
    Last edited by aydeegee; 04-09-2014 at 03:59 PM.

+ 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. [SOLVED] Pick a cell containing current month actulas based what the current month is.
    By vanbasten007 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2014, 01:17 AM
  2. VBA: Piviot table Month auto select based on current month?
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2013, 08:45 AM
  3. VBA: Piviot table Month auto select based on current month?
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2013, 07:18 AM
  4. Macro using vlookups comparing 2 months paysheet(previous month and current month)
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2012, 03:45 AM
  5. [SOLVED] Counting dates for a the present month but not future months
    By BrianInCalifornia in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-06-2005, 10:15 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