+ Reply to Thread
Results 1 to 3 of 3

transferring amount to particular month column

  1. #1
    Tiya
    Guest

    transferring amount to particular month column

    =IF($B13="","",IF(CHOOSE(MONTH($B13),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")=H$2,$G13,""))

    Using This function i am transferring amount to particular month column but
    when there is a same month but year is change than also it goes to that
    month, i want if there is year change it should goto that year column.

    I have data for year 2004,2005 & 2006 so i have created 36 column for every
    month.

    Is there any way?

    Thanks
    tiya



  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You don't really need Choose. Your current formula could be

    =IF($B13="","",IF(TEXT($B13,"mmm")=H$2,$G13,""))

    Now, to change the formula to identify the year....

    If you input your headers as "jan-04", "feb-04" etc. excel should recognise these as dates and you can use

    =IF($B13="","",IF($B13-Day($B13)+1=H$2,$G13,""))

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    .....in fact you don't even need the first IF function - this would suffice

    =IF($B13-DAY($B13)+1=H$2,$G13,"")

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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