+ Reply to Thread
Results 1 to 8 of 8

If/And formula

  1. #1
    Registered User
    Join Date
    12-16-2011
    Location
    New Orleans, La
    MS-Off Ver
    Excel 2003
    Posts
    12

    Unhappy If/And formula

    I have attached my whole spreadsheet and now you will see I am a true rookie at this. What I am trying to do is fill in this summary sheet with the data on the first spreadsheet. I think it is because of the dates, that I can't get it to work
    Attached Files Attached Files
    Last edited by ddalferes; 12-21-2011 at 11:18 AM. Reason: attached whole spreadsheet

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Problem with if(and formula

    Hi and welcome to the board

    Please post a sample sheet - Data formatting might be important

  3. #3
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: If/And formula

    All your expiry dates are in 2011, what years data would be summed for that?
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  4. #4
    Registered User
    Join Date
    12-16-2011
    Location
    New Orleans, La
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: If/And formula

    I don't have any 2011 expiry dates

  5. #5
    Registered User
    Join Date
    12-16-2011
    Location
    New Orleans, La
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: If/And formula

    I have attached my whole spreadsheet and now you will see I am a true rookie at this. What I am trying to do is fill in this summary sheet with the data on the first spreadsheet. I think it is because of the dates, that I can't get it to work

  6. #6
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: If/And formula

    Try this in Summary B4,

    =SUM(IF(TEXT(DATE(YEAR(Expirations!$C$1:$D$301)+3,MONTH(Expirations!$C$1:$D$301)+1,0),"yyyymmm")=$A4&B$3,--LEFT(Expirations!$B$1:$B$301,FIND(" ",Expirations!$B$1:$B$301&" ")-1)))

    This is an Array Formula (must hit CTRL+SHIFT+ENTER, rather than just ENTER then copy down & across.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  7. #7
    Registered User
    Join Date
    12-16-2011
    Location
    New Orleans, La
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: If/And formula

    Quote Originally Posted by Haseeb A View Post
    Try this in Summary B4,

    =SUM(IF(TEXT(DATE(YEAR(Expirations!$C$1:$D$301)+3,MONTH(Expirations!$C$1:$D$301)+1,0),"yyyymmm")=$A4&B$3,--LEFT(Expirations!$B$1:$B$301,FIND(" ",Expirations!$B$1:$B$301&" ")-1)))

    This is an Array Formula (must hit CTRL+SHIFT+ENTER, rather than just ENTER then copy down & across.


    Boy I'm way in over my head! I typed the formula and am getting all 0 except in December 2015, which is my largest group, I am getting the result of 32, which is only one of the cells to be added. Since I don't know what I am doing I don't know what to check. Thanks anyway, I'll keep trying. Any thoughts?

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: If/And formula

    Sorry my mistake. There was some error. The range should be Expirations!$C$1:$C$301 NOT Expirations!$C$1:$D$301

    If Col_C are valid dates, then can avoid the helper columns.

    Try the attached.
    Attached Files Attached Files

+ 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