+ Reply to Thread
Results 1 to 6 of 6

SumProduct + Text + Indirect = Not working together! At least for me!

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Surrey, BC
    MS-Off Ver
    Excel 2016
    Posts
    84

    SumProduct + Text + Indirect = Not working together! At least for me!

    Hi there,

    I am using a formula I found that counts the number of ocourances that contain a specific month and year.

    Please Login or Register  to view this content.
    this works perfectly and gives me the correct result of 2.

    What I am trying to do is replace the sheet reference with an Indirect reference, 14843 is cell A5. Here is what I have tried...

    Please Login or Register  to view this content.
    I get an #REF error and I am not sure what I am doing wrong.

    Any ideas?

    Thanks
    CraigWorld

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: SumProduct + Text + Indirect = Not working together! At least for me!

    It would be easier to follow if you had posted a sheet, but...

    How does this look:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-18-2012
    Location
    Surrey, BC
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: SumProduct + Text + Indirect = Not working together! At least for me!

    Ah... Thanks Glenn

    Missed the extra quotation mark that I added... funny how the eyes miss little things like that.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thanks Again!

    CraigsWorld

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: SumProduct + Text + Indirect = Not working together! At least for me!

    It wasn't an extra... it was in the wrong place. it should be after $c$50. But yes, the syntax of INDIRECT does my head in...

  5. #5
    Registered User
    Join Date
    10-18-2012
    Location
    Surrey, BC
    MS-Off Ver
    Excel 2016
    Posts
    84

    Re: SumProduct + Text + Indirect = Not working together! At least for me!

    Thanks Again!... I think I understand better now. With indirect, everything needs to be within quotes unless you are using a value from inside a cell. Which is the purpose of indirect. It is definitely confusing but powerful.

    Seems a little clearer now...

    CraigsWorld

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SumProduct + Text + Indirect = Not working together! At least for me!

    Quote Originally Posted by Glenn Kennedy View Post
    =SUMPRODUCT(--(TEXT(INDIRECT("'"&$A5&"'!$C$5:$C$50"),"yyyymmmm")=Data!$M$2&Data!$L$2))
    Quoted references inside the INDIRECT function are automatically evaluated as absolute references so there's no need for the $ signs.

    =SUMPRODUCT(--(TEXT(INDIRECT("'"&$A5&"'!C5:C50"),"yyyymmmm")=Data!$M$2&Data!$L$2))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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] SUMPRODUCT and INDIRECT functions not working with a ROW reference when combined
    By Duoae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2014, 03:28 AM
  2. sumproduct text with indirect
    By matrix_xrs in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-05-2013, 10:37 AM
  3. SUMPRODUCT condition ="*text*" not working
    By nfellen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-26-2012, 08:31 PM
  4. Replies: 6
    Last Post: 03-09-2011, 08:01 AM
  5. SUMPRODUCT not working due to text in column
    By damiensmith212 in forum Excel General
    Replies: 3
    Last Post: 04-24-2009, 12:29 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