+ Reply to Thread
Results 1 to 6 of 6

Adding an additional Condition to a working Formula

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Unhappy Adding an additional Condition to a working Formula

    Hi Folks

    I have this formula:

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


    and wish to add this pre-condition:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    is TRUE then the above formula continues, else to return 0

    Cannot get it right-

    Cheers
    hammer
    If you have found solving my problem/s to be an interesting and educational exercise then how about Repping me up?
    No idea why I need Rep, other than feeling left out....

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Adding an additional Condition to a working Formula

    I'm not sure what your pre-condition relates to. Are you saying that you only want to consider rows where the cells in column B contain the phrase "TO BE PLACED"?

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Adding an additional Condition to a working Formula

    That is correct thanks Pete-
    Thanks
    Hammer

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Adding an additional Condition to a working Formula

    Okay, try it like this:

    =IFERROR(INDEX('[UKIRE EACHWAY RESULTS.xlsb]Data'!$E$2:$E$200000,INDEX(MATCH(A2&Y2&"TO BE PLACED",'[UKIRE EACHWAY RESULTS.xlsb]Data'!$C$2:$C$200000&'[UKIRE EACHWAY RESULTS.xlsb]Data'!$D$2:$D$200000&'[UKIRE EACHWAY RESULTS.xlsb]Data'!$B$2:$B$200000,0),)),0)

    (changes shown in red). Note that this is an array formula, so you must commit it using the key combination of Ctrl+Shift+Enter instead of the usual < Enter >.

    The ranges you have used are quite large, so this is likely to be quite sluggish, especially as it refers to an external workbook - it would help if you reduced the 200000 (if possible).

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: Adding an additional Condition to a working Formula

    Hey Pete
    Works perfectly!
    No problems with sluggishness as each day's data is copied over and pasted back in as values-
    Many thanks for your time and expertise once again!
    Cheers
    hammer

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Adding an additional Condition to a working Formula

    Glad to help - thanks for the rep.

    Pete

+ 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. Adding a condition to a working formula - need syntax help
    By meppwc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2015, 03:15 PM
  2. Additional condition to existing formula
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 04-09-2015, 08:44 AM
  3. Adding additional IF condition
    By dannyjoer in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-28-2014, 10:10 AM
  4. Macro to format data - counting and adding additional rows on condition
    By rynofrowan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-12-2013, 11:46 PM
  5. [SOLVED] Want to add additional criteria to a working formula
    By mrp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2012, 06:36 PM
  6. COUNTA-formula with additional condition
    By BCB in forum Excel General
    Replies: 5
    Last Post: 12-14-2006, 02:48 PM
  7. [SOLVED] Adding additional rows with formula
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-11-2006, 08:40 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