Solved

Excel Cross Tab IF Statements for Formatting

Posted on 2007-03-22
4
226 Views
Last Modified: 2008-02-01
I have a crosstab query from an access database that I am exporting to excel.  I have been trying to formulate the IF clauses for all cells.  My data contains the following:

Vertical Access = SOX Controls
Horitonal Access = Projects
1 = Control Tested
0 = Control Not Tested
(blank) = No Control Available

I want to run the IF statement to change a 1 to "Tested", 0 to "Not Tested" and (blank cells) to "N/A" and grey them out.

I am using the following for the cells:

=IF(A2=1,"Tested",IF(A2=0,"Not Tested","N/A"))

Can anyone please help??
0
Comment
Question by:davidkohne
  • 3
4 Comments
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 125 total points
ID: 18771793
=IF(A2=1,"Tested",IF(A2="","N/A","Not Tested"))

Then use Conditional Formatting to color the N/A cells.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 18771853
BTW, if you are content to leave the blanks cells looking blank, you can make the 0 and 1 display as Not Tested and Tested, you could use this Customer number format:


[=1]"Tested";[=0]"Not Tested"
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 18771929
"Customer number format" - what Customer is this? :^P
0
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 18771996
ack!

custom number format :)
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now