+ Reply to Thread
Results 1 to 7 of 7

IF Column E month equals get Column D Value

  1. #1
    Registered User
    Join Date
    11-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    IF Column E month equals get Column D Value

    Trying to search column E for anything in JAN and return the corresponding cells "D" value

    My attempt =IF(MONTH(E1:E5)=1,(D1:D5))

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: IF Column E month equals get Column D Value

    try

    =IF(MONTH(E1)=1,D1,"")

    and copy down E2 to E5

    will set cell to blank if not JAN

  3. #3
    Registered User
    Join Date
    08-17-2012
    Location
    New York, New York
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: IF Column E month equals get Column D Value

    =if(month(e1)=1,d1,"")

  4. #4
    Registered User
    Join Date
    11-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    Re: IF Column E month equals get Column D Value

    Yeah that works but I need to search the whole column E1-E5 and and then return/add the corresponding values in D1-D5 if there in that month.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: IF Column E month equals get Column D Value

    =SUMPRODUCT((month(E1:E5)=1)*(D1:d5))

    will sum values in D range if E range = Jan

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: IF Column E month equals get Column D Value

    can you use a helper column? If you use =month(E1) dragged down in another location, say F1 through F5, then this in another cell =SUMIF(F1:F5,1,D1:D5) that would work.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  7. #7
    Registered User
    Join Date
    11-25-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    25

    Re: IF Column E month equals get Column D Value

    Winner! Thanks

+ 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. Replies: 7
    Last Post: 08-09-2015, 05:07 PM
  2. Replies: 7
    Last Post: 11-13-2014, 04:46 PM
  3. Count unique occurences in column A if column B equals value
    By butler1012 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-26-2014, 09:15 AM
  4. [SOLVED] Need to count if Column A contains definded text and Column B equals defined word
    By JBlo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-26-2014, 01:38 PM
  5. Replies: 4
    Last Post: 09-06-2012, 09:26 AM
  6. Replies: 2
    Last Post: 08-04-2006, 03:00 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