+ Reply to Thread
Results 1 to 5 of 5

Check current month column and update it accordingly

  1. #1
    Registered User
    Join Date
    09-21-2013
    Location
    chennai,India
    MS-Off Ver
    Excel 2010
    Posts
    75

    Check current month column and update it accordingly

    Hi All,

    I have a sheet for departmental store invoice details. I want to check all the items invoices are received for current month or not.Sheet may have more than 10000 rows.

    workbook contains two sheets, sheet1 and sheet2. Sheet 2 has all the item details and i want to update sheet 1 as per below criteria.

    So i want to make it simple. sheet2 contains columns for month's like (Jan'14, Feb'14 .... Dec'14).

    Always i want to check the current month (based on system date) invoices.

    Example: If i open on 4/21/14, i want to check the April'14 named column in sheet 2. If any item invoice values are updated in the April'14 named column. I want to update the sheet 1 as item invoices are received (pls see the attachment for clarification).

    Thanks in advance.invoice_sample.xlsx

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Check current month column and update it accordingly

    Hello, In E6 of sheet 1
    copy paste below the hold control and shift together and then hit enter to make it array formula
    =IF(INDEX(INDEX(Sheet2!$F$3:$Q$12,0,MATCH(TRUE,TEXT(NOW(),"MMM")=LEFT(Sheet2!$F$2:$Q$2,3),0)),MATCH($B6&$C6,Sheet2!$B$3:$B$12&Sheet2!$C$3:$C$12,0))=0,"","Received")

    then drag down
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Check current month column and update it accordingly

    Change dates JAN'14 to real first of month dates
    1/1/2014 and so on custom format as mmm'yy
    then in sheet 1 d6 put
    =IF(INDEX(Sheet2!$F$3:$Q$12,MATCH(C6,Sheet2!$C$3:$C$12,0),MATCH(EOMONTH(TODAY(),-1)+1,Sheet2!$F$2:$Q$2,0))>0,"RECIEVED","")
    fill down
    conditional format cells to change to green when they = recieved
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Check current month column and update it accordingly

    I have made some changes in sheet 2 range F2:Q2. I just put the dates there and custom formatted as mmm'yy.

    Then on sheet1 in the cell D6, try this Array Formula. Since this is an array formula so you need to confirm it with Ctrl + Shift + Enter instead of just Enter. (i.e. hold down the Ctrl + Shift and then press Enter)

    Please Login or Register  to view this content.
    and drag down.

    Is this what you want?

    For detail see the attached sheet.
    Attached Files Attached Files
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Check current month column and update it accordingly

    mind you once youve changed dates to real f1rst of month dates dates
    then
    =IF(INDEX(Sheet2!$F$3:$Q$12,MATCH(C7,Sheet2!$C$3:$C$12,0),MATCH(TODAY(),Sheet2!$F$2:$Q$2,1))>0,"RECIEVED","") will do

+ 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. Lookup value by choosing column that matches current month
    By Ruthie in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 07-19-2013, 11:32 AM
  3. Replies: 12
    Last Post: 06-10-2013, 05:42 PM
  4. How to check if month in column B is before current month
    By John74 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-17-2009, 04:44 PM
  5. [SOLVED] automatically update chart plotting current month and previous 6
    By Jane in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-01-2005, 06:05 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