Solved

Excel Cross Tab IF Statements for Formatting

Posted on 2007-03-22
4
254 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

791 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