+ Reply to Thread
Results 1 to 6 of 6

Unable to execute formula on a range of cells that are also formulas

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    Halifax,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Unable to execute formula on a range of cells that are also formulas

    The title is less than clear, my apologies.

    I'm doing totals/ responses.
    I have a row of cells that is actually a "IF" formula that looks to another worksheet. "IF" the target cell on the other worksheet is a certain value (text) a certain numeric value is returned. This works flawlessly

    At the end of that row I have another formula where I am looking to "countif" the numbers(calculated above) are >= another number =COUNTIF(D2:I2,">=3")

    everything comes up 0 - I know this is because the range i am providing is actually cells that contain formulas, for the love of everything good and holy I cannot remember what to do to make this work. I can manually put in numbers in a row and use the same formula and tada get an answer.

    I've tried number, general, custom - no formats seem to work.

    thoughts?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Sorry, but that's wrong.

    COUNTIF will work if the values are the results of formulas or have been entered manually.

    Of course that depends on what the values are.

    Can you post an example of the IF formula?
    Last edited by Norie; 06-24-2013 at 11:16 AM.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    Halifax,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Unable to execute formula on a range of cells that are also formulas

    =IF(Data!H2="Value1","1",IF(Data!H2="Value2","2",IF(Data!H2="Value3","3",IF(Data!H2="Value4","4"))))

  4. #4
    Registered User
    Join Date
    06-24-2013
    Location
    Halifax,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Unable to execute formula on a range of cells that are also formulas

    the IF part works fine the CountIF is failing.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Your IF formula is returning text values, your COUNTIF is looking for numeric values.

    Try removing the quotes around 1,2,3 etc.

  6. #6
    Registered User
    Join Date
    06-24-2013
    Location
    Halifax,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Unable to execute formula on a range of cells that are also formulas

    well. that was it. I'm a twit.

    Thank you !!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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