+ Reply to Thread
Results 1 to 2 of 2

Countif to consider both a single cell and a range of cells at the same time

  1. #1
    Registered User
    Join Date
    09-02-2020
    Location
    London
    MS-Off Ver
    Windows 10
    Posts
    5

    Countif to consider both a single cell and a range of cells at the same time

    Hi there

    I was wondering if there is any chance you could help. I am trying to do Countif on a row but I have to exclude one of the cells in that row as I do not want countif to consider that cell so I am trying to make countif look at the cell before the cell I want to exclude and also at the range that follows the cell I am excluding. I am not sure if this makes sense. Below is how I wrote it but I am getting a "Formula parse error" message. I want it to return a "Major risk" if cell < 1 in all 5 years and so on ....

    =IF(COUNTIF(('Financial Analysis Template - Company'!f75,'Financial Analysis Template - Company'!h75:K75),"<1")=5,"Major Risk",

    if(COUNTIF(('Financial Analysis Template - Company'!f75,'Financial Analysis Template - Company'!h75:K75),"<1")>=1,"Moderate Risk",

    if(COUNTIF(('Financial Analysis Template - Company'!f75,'Financial Analysis Template - Company'!h75:K75),">1")=5,"Minor Risk",

    if(countif(('Financial Analysis Template - Charity'!f89,'Financial Analysis Template - Charity'!h89:K89),"<1")=5,"Major Risk",

    if(countif(('Financial Analysis Template - Charity'!f89,'Financial Analysis Template - Charity'!h89:K89),"<1")>=1,"Moderate Risk",

    if(countif(('Financial Analysis Template - Charity'!f89,'Financial Analysis Template - Charity'!h89:K89),">1")=5,"Minor Risk",

    if(countif(('Financial Analysis Template - LLP'!f75,'Financial Analysis Template - LLP'!h75:K75),"<1")=5,"Major Risk",

    if(COUNTIF(('Financial Analysis Template - LLP'!f75,'Financial Analysis Template - LLP'!h75:K75),"<1")>=1,"Moderate Risk",

    if(COUNTIF(('Financial Analysis Template - LLP'!f75,'Financial Analysis Template - LLP'!h75:K75),">1")=5,"Minor Risk",

    if(countif(('Financial Analysis Template - Partnership'!f81,'Financial Analysis Template - Partnership'!h81:K81),"<1")=5,"Major Risk",

    if(COUNTIF(('Financial Analysis Template - Partnership'!f81,'Financial Analysis Template - Partnership'!h81:K81),"<1")>=1,"Moderate Risk",

    if(COUNTIF(('Financial Analysis Template - Partnership'!f81,'Financial Analysis Template - Partnership'!h81:K81),">1")=5,"Minor Risk",""))))))))))))


    Thank you.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Countif to consider both a single cell and a range of cells at the same time

    You

    =IF((COUNTIF('Financial Analysis Template - Company'!F75:K75,"<1")-('Financial Analysis Template - Company'!G75="<1"))=5,"Major Risk",

+ 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. COUNTIF criteria add a single cell across a range?
    By rykel02 in forum Excel General
    Replies: 4
    Last Post: 10-05-2018, 06:39 PM
  2. Calculate Time Range In Single Cell
    By A_H in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2017, 12:06 AM
  3. [SOLVED] COUNTIF Time Range - Time Range provided in Cells
    By Eaks77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-02-2015, 11:12 PM
  4. Replies: 4
    Last Post: 09-02-2014, 04:25 AM
  5. [SOLVED] Sum range of cells across columns into single cell on next available row
    By sfryeben in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-03-2014, 06:04 PM
  6. How to split date and time from single cell to two cells
    By taprico in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2013, 12:14 PM
  7. How to connect a single cell value with a range of cells
    By shafika.tkm in forum Excel General
    Replies: 2
    Last Post: 11-09-2012, 09:33 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