+ Reply to Thread
Results 1 to 10 of 10

Array Formula to Non Array

Hybrid View

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    16

    Unhappy Array Formula to Non Array

    Hello all,

    I currently uses a ton of Array formulas(sample below) to count a database, does Array formulas slow down EXCEL? because my excel runs really slow, was wondering if anyone can construct a NON Array formula base on this? I want to change all my array formulas to Non. THANKS!!!

    =SUM(IF(SSP=F170,IF(SP=G170,IF(Day=A$1:B$1,IF(Single=D170,1,0),0))))

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Array Formula to Non Array

    could you post a sample book. Try using sumifs
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

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

    Re: Array Formula to Non Array

    They're not doing a sum. They're doing a count.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    08-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Array Formula to Non Array

    Hi, thanks for the advice, the work book is too big and probably not a good idea to upload work stuff. I would have to change so much stuff in order to upload, but basically, the SSP, DAY. etc are name range, I have one sheet that consist all the data, each record is in a row, I basically just want the formula to look up and count the number of times if all criteria are met...in a NON Array formulas

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

    Re: Array Formula to Non Array

    In array formulas you should avoid using entire columns as range references.

    Can you post the formula replacing the named ranges with their actual range addresses?

    I'm curious about this portion:

    IF(Day=A$1:B$1

    Is Day a 1 dimensional array?

  6. #6
    Registered User
    Join Date
    08-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Array Formula to Non Array

    It would be something like this....Day=D2:D2997, SSP=G2:G2997, Single=D2:D2997 and so forth.
    I have one sheet that is the "Database" and then one sheet where I put the formulas...
    For example when I put "thur" "yes" "15" then, the formulas returns the number of records that has those criteria. It is actually counting base on the criteria. I am sorry, I thought I am good in Excel , I don't even know what a dimensional array is.... =(

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

    Re: Array Formula to Non Array

    OK, I'm still wondering about this portion of the formula:

    IF(Day=A$1:B$1

    Since Day refers to D2:D2997, what's in A1:B1?

    Can you post about 20 rows worth of data and tell us what result you expect?

    Array dimensions are...

    A single row or column of data would be 1 dimensional:

    A1:A10 = 1 dimensional
    A1:J1 = 1 dimensional

    Multiple rows/columns would be 2 dimensional:

    A1:C10 = 2 dimensional
    A1:J2 = 2 dimensional

    And, we can even have a 3 dimensional array:

    Sheet1 thru Sheet5 A1:C10 = 3 dimensional

  8. #8
    Registered User
    Join Date
    08-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Array Formula to Non Array

    BA CA <<Day Codes

    Database
    Week Date Lbs Single Time SSP SP Origin Type O/U Date Delivery Delivery Diff Overage Day
    W02 09/17/06 5 No 1.00 100 47 Orange200 Over 09/17/06 Apple 250 50 350.0 CA
    W02 09/17/06 25 No 1.00 100 47 Apple 150 Over 09/17/06 Orange 178 28 128.0 BA
    W02 09/17/06 25 No 1.00 300 38 Grapes100 Under 09/17/06 Blueberries 125 25 (75.0) AA
    W02 09/17/06 100 No 1.00 200 38 Beef 100 Over 09/17/06 Kobe 125 25 25.0 DA


    Analysis Sheet

    Week Date Lbs Single Time SSP SP Origin Type O/U Date Delivery Delivery Diff Overage Day
    W02 09/17/06 SUN No 1.00 100 47 Orange 09/17/06 Apple 0 (100.0)

    SUM(IF(SSP=F170,IF(SP=G170,IF(Day=A$1:B$1,IF(Single=D170,1,0),0))))

    The formula now go and look at the database sheet and see when I type SSP at 100 and type SP 47 and the if the CODE is BA or CA
    It should count there is 2 instance, therefore returns a number 2
    I am trying to Predict the CODE base on the criteria SSP & SP or other criterias…
    My worksheet which someone gave me long time ago, I have been using for many years…my computer is not slow
    but I believe these formulas are really slowing it down. And I don't like the shif, control enter…always forgets…

    Thank you so much for looking at this!!!!
    Last edited by ExceLLemon; 10-21-2013 at 02:16 PM.

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

    Re: Array Formula to Non Array

    I can't make out what data is what and where it's supposed to go.

    Can you post a SMALL sample file with about 20 rows worth of data and let us know what result you expect. Include your current formula so we can see what result it returns.

  10. #10
    Valued Forum Contributor
    Join Date
    05-07-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    354

    Re: Array Formula to Non Array

    Have you tried replacing your sum(if(...) with countifs?

    That function wasn't available before excel 2007. But since you have excel 2007, you should use it.
    Regards,
    Vandan

+ 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. Typing an array into a formula rather than referring to an array of cells
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-03-2013, 12:59 PM
  2. Replies: 6
    Last Post: 05-26-2012, 04:56 AM
  3. Replace hard coded array in formula with link to input array
    By David Brown in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2011, 07:45 AM
  4. Converting 3x10 array to a 1X30 array to run a Match formula
    By NBVC in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2009, 07:45 AM
  5. Replies: 0
    Last Post: 07-27-2005, 11:05 AM

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