Solved

Excel Cross Tab IF Statements for Formatting

Posted on 2007-03-22
4
269 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
[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
  • Learn & ask questions
  • 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

Industry Leaders: 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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

628 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