+ Reply to Thread
Results 1 to 6 of 6

Array Syntax for Cell Referencing

  1. #1
    Registered User
    Join Date
    09-08-2016
    Location
    FL
    MS-Off Ver
    2016
    Posts
    23

    Array Syntax for Cell Referencing

    I've solved the problem (based on current drop down selections) by manual entry. I still want to use an array, but I can't figure out how to reference the cells with the data... I've tried concatenating, too, but I can't get the syntax right.

    File attached, thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Array Syntax for Cell Referencing

    Hi,
    If my understanding is correct, try this formula :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Array Syntax for Cell Referencing

    OK Try this:

    =SUM((Name=I4)*(Dater>=I5)*(Dater<=I6)*(Sales))

    CSE the above. See the attached.
    CSE for SumIfs.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    09-08-2016
    Location
    FL
    MS-Off Ver
    2016
    Posts
    23

    Re: Array Syntax for Cell Referencing

    Quote Originally Posted by MarvinP View Post
    OK Try this:

    =SUM((Name=I4)*(Dater>=I5)*(Dater<=I6)*(Sales))

    CSE the above. See the attached.
    Attachment 485358
    Ah yes, asterisk for and... I understand, thanks!

  5. #5
    Registered User
    Join Date
    09-08-2016
    Location
    FL
    MS-Off Ver
    2016
    Posts
    23

    Thumbs up Re: Array Syntax for Cell Referencing

    Quote Originally Posted by GC Excel View Post
    Hi,
    If my understanding is correct, try this formula :

    Please Login or Register  to view this content.
    Excellent.. While the asterisk for and logic in the array is a little cleaner, I appreciate the help with the concatenation syntax here.

  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: Array Syntax for Cell Referencing

    Quote Originally Posted by GC Excel View Post
    =SUM(SUMIFS(Sales,Name,$I$4,Date,">=" & $I$5,Date,"<="&$I$6))
    No need for the SUM function:

    =SUMIFS(Sales,Name,$I$4,Date,">=" & $I$5,Date,"<="&$I$6)
    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. Syntax for code referencing a specific cell from a textbox
    By Toddiman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-31-2015, 11:45 AM
  2. [SOLVED] Split contents of a cell into array syntax
    By TheCman81 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-08-2013, 03:08 PM
  3. Referencing to any one cell from an array.
    By frvannes16 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-16-2012, 12:18 PM
  4. Referencing the next cell in an array that is not a particular value
    By Gunther Maplethorpe in forum Excel General
    Replies: 4
    Last Post: 01-12-2011, 02:10 PM
  5. 1 cell referencing an array with an IF statement
    By majlessiju in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2007, 04:40 PM
  6. VBA syntax when referencing a specific cell
    By d888nc in forum Excel General
    Replies: 2
    Last Post: 10-24-2006, 04:24 PM
  7. Syntax to insert an array formula in a cell
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2006, 05:40 PM

Tags for this Thread

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