Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Same thing but looking within a range

Posted on 2011-09-28
Medium Priority
169 Views
Hello,

I just had a thought, how could I manipulate the above formula to look for a certain range istead of just one number,
For example, what would I do if I had the following ratings range?

Ratings Range
1-2 ticks = 5
3-5 ticks = 4
6-9 ticks = 3
10-12 ticks = 2
12 and over ticks = 1
0
Question by:vegas86
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 23

Accepted Solution

Michael Fowler earned 2000 total points
ID: 36812863
An IF statement stops calculating once it reached a statement that is true therefore you can use the following

=IF(COUNTIF(A2:E2,"P")<=2,5,IF(COUNTIF(A2:E2,"P")<=5,4,IF(COUNTIF(A2:E2,"P")<=9,3,IF(COUNTIF(A2:E2,"P")<=12,2,1))))

Michael
0

Author Closing Comment

ID: 36812879
Thanks again Michael!! :)
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
###### Suggested Courses
Course of the Month7 days, 15 hours left to enroll