+ Reply to Thread
Results 1 to 4 of 4

two formulas i'm trying to turn into one

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    two formulas i'm trying to turn into one

    Hi,

    Both individual formulas work.

    I've the following formula in F1 (an array), it looks at cell A1, finds matches in sheet 1 column A and the returns the SMALL value found in sheet 1 column B:

    F1 =IFERROR(SMALL(IF((Sheet1!$A:$A=A1)*ISNUMBER(Sheet1!$B:$B),Sheet1!$B:$B),1),"")

    Next I've a display formula in D1, it looks for the count of B1:C1 and if this count is greater or = 1 it returns the value in F1 else returns a blank:

    D1 =IF(COUNTIF(B1:C1,">=1"),F1,"")

    I'd like to add the formula of F1 into the formula in D1 or visa versa.

    Help please.

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

    Re: two formulas i'm trying to turn into one

    You could put this formula in D1:

    =IF(COUNTIF(B1:C1,">=1"),IFERROR(SMALL(IF((Sheet1!$A:$A=A1)*ISNUMBER(Sheet1!$B:$B),Sheet1!$B:$B),1),""),"")

    Note that this is an array formula, so needs to be committed using the key combination of Ctrl-Shift-Enter instead of the usual < Enter >

    It is not a good idea to use complete column references in an array formula, so you might like to reduce the range of $A:$A and $B:$B where they occur.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    07-11-2014
    Location
    Australia
    MS-Off Ver
    MS365 (2208)
    Posts
    48

    Re: two formulas i'm trying to turn into one

    Pete,

    Many thanks. I will also change the range as advised.

    Cheers, Stuart

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

    Re: two formulas i'm trying to turn into one

    Thanks for the rep, Stuart.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    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. Replies: 3
    Last Post: 01-01-2016, 03:44 PM
  2. Formulas turn to values
    By tahchee1 in forum Excel General
    Replies: 2
    Last Post: 12-13-2013, 04:58 PM
  3. Turn off formulas
    By Tortus in forum Excel General
    Replies: 3
    Last Post: 03-15-2010, 12:20 PM
  4. Turn Off Formulas?
    By nevica in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-17-2009, 12:49 PM
  5. how do I turn ON auto REcalculate for formulas if new data enter?
    By Mark in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2006, 11:25 PM
  6. Need help with formulas-How this total I turn it to 10
    By LISVET in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-11-2005, 12:05 PM
  7. [SOLVED] how do i turn off formulas in excel
    By vachss in forum Excel General
    Replies: 4
    Last Post: 04-04-2005, 09:06 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