Solved

Evaluate Null Values in Excel If Statement

Posted on 2014-03-28
2
223 Views
Last Modified: 2014-04-25
I'm using an Excel spreadsheet with multiple pick from list cells to calculate a text value (based on a weighted numbering in adjacent cells).  I need to evaluate C2:C11 such that if any cell is null, C12 reads "Select a Value for Each Concept."  Once all cells have been filled, I then need to display the text I am currently displaying with the following statement.

=IF(D12<=30, "Every Five Years", IF(D12<=60, "Every Three Years", IF(D12>60, "Every Year")))

Any thoughts on accomplishing?
RevisionMatrix.xlsx
0
Comment
Question by:mattturley
2 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 39962638
Try this revised version

=IF(COUNTBLANK(C2:C11),"Select a Value for Each Concept.",IF(D12<=30, "Every Five Years", IF(D12<=60, "Every Three Years", IF(D12>60, "Every Year"))))

You will only get your original values once all of C2:C11 is populated

regards, barry
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 39966178
Alternatively, set up a small lookup table:

0      Every 5 Years
31      Every 3 Years
61      Every Year

Then have a lookup formula for the second half of the formula:

=IF(COUNTBLANK(C2:C11),"Select a Value for Each Concept.",VLOOKUP(D12,A1:B4,2)

Where table is in range A1:B3

This way if the ranges change, you only have to change the values in the left hand column of the table rather than in the formula.

Thanks
Rob H
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nested excel formula 5 29
TO make secondary axis in pivot chart by Series Name 3 9
Excel IF statement 4 20
Excel Named Range 31 44
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question