+ Reply to Thread
Results 1 to 5 of 5

Trying to replicate a formula

  1. #1
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Trying to replicate a formula

    I wrote this formula for a spreadsheet years ago, its an order sheet for a restaurant, when the adjacent cell next to an item in the source sheet is marked with a number it appears on a different sheet, a neat list with no spaces in between. This list was to be emailed to the person buying the supplies. It worked great until someone changed the source and moved tables around. I don't use it anymore so I didn't think about it until I wanted to replicate the formula in different spreadsheet to do basically the same thing, but I cant remember exactly what I did. I've been trying to break it down and change the info but I just cant make it work in a new sheet. Can anyone explain this formula to me? Does this question even make sense?


    These are the first 2 cells, the only difference in every formula is the very last number which is the destination for the source:

    =IFERROR(INDEX(KITCHEN!B:B,SMALL(IF(KITCHEN!$A$4:$A$58<>0,ROW(KITCHEN!$A$4:$A$58)),ROWS($C$1:D1))),"")

    =IFERROR(INDEX(KITCHEN!B:B,SMALL(IF(KITCHEN!$A$4:$A$58<>0,ROW(KITCHEN!$A$4:$A$58)),ROWS($C$1:D2))),"")

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Trying to replicate a formula

    Can you attach the spreadsheet and someone may be able to figure out how to fix it.

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Trying to replicate a formula

    Those are ARRAY formulas, ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    And that last "number" is changing because it is being copied - and it IS supposed to change
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    04-02-2014
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Trying to replicate a formula

    That's it, its an array formula. I don't know how I got that to work the way I wanted the first time, I was studying a tutorial at the time and somehow did it, now years later I don't understand it and cant replicate it. But thank you for telling me that, it has the curly brackets. I have to study array formulas again, ugh. No quick and easy copy for me this time. I will try and attach it if I can remember how to do that too.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Trying to replicate a formula

    Quote Originally Posted by Kshari View Post
    ...it has the curly brackets....
    Yes it does, but you cannot just type them in, you need to do the CTRL SHFT ENTER thingy that I showed you - excel will add them for you

+ 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. Trying to replicate a formula
    By Kshari in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-19-2018, 10:16 PM
  2. How can I replicate “Contains” in a formula?
    By Motox in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2015, 04:14 AM
  3. [SOLVED] problem with replicate formula
    By rfoster6 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2006, 08:50 AM
  4. How can I replicate a conditional sum formula?
    By Biff in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  5. [SOLVED] How can I replicate a conditional sum formula?
    By Dan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  6. [SOLVED] How can I replicate a conditional sum formula?
    By Dan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  7. How can I replicate a conditional sum formula?
    By Biff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 05: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