PC Review


Reply
Thread Tools Rate Thread

Auditing excel for everyday tasks

 
 
test
Guest
Posts: n/a
 
      21st Feb 2009
Greetings,

We have excel sheets created everday for some tasks. There are 2
columns that are getting filled manually.

ColumnA: Filled with either SUCCESS, FAIL or OTHER
ColumnB: If the columnA is filled with either FAIL or OTHER, then we
are filling
column B with some reason for these values. So in short, if ColumnA's
value is either FAIL or OTHER, then ColumnB should NOT BE NULL.

I am looking for a script in excel (macro or something) or a report
that should tell me records(may be in a mail or any text file...)
which have FAIL or OTHER in column A but column B is empty and the no
of records matching this criteria.

Is there a way to achieve this using some code in excel? Also, I have
to make sure that ColumnA should not be having any values other than
SUCCESS, FAIL or OTHER.

For now, we are doing this manually. But we have lot of excel files
and each one has pretty big data. I want to achieve this using a code
in excel to avoid manual work.

Can anyone please advise.

TIA
 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      21st Feb 2009
A simple way is to use an adjacent col to monitor the data-entry in cols A
and B, and provide the necessary visual alert

Assuming data entry in row2 down
In C2:
=IF(AND(OR(A2={"Fail","Other"}),B2=""),"< Fill-in reason","")
Copy down as far as required. Format col C in red/bold font,
whatever, to make the visual alert outstanding.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"test" <(E-Mail Removed)> wrote in message
news:657a2bbc-579b-47d7-8b1c-(E-Mail Removed)...
> Greetings,
>
> We have excel sheets created everday for some tasks. There are 2
> columns that are getting filled manually.
>
> ColumnA: Filled with either SUCCESS, FAIL or OTHER
> ColumnB: If the columnA is filled with either FAIL or OTHER, then we
> are filling
> column B with some reason for these values. So in short, if ColumnA's
> value is either FAIL or OTHER, then ColumnB should NOT BE NULL.
>
> I am looking for a script in excel (macro or something) or a report
> that should tell me records(may be in a mail or any text file...)
> which have FAIL or OTHER in column A but column B is empty and the no
> of records matching this criteria.
>
> Is there a way to achieve this using some code in excel? Also, I have
> to make sure that ColumnA should not be having any values other than
> SUCCESS, FAIL or OTHER.
>
> For now, we are doing this manually. But we have lot of excel files
> and each one has pretty big data. I want to achieve this using a code
> in excel to avoid manual work.
>
> Can anyone please advise.
>
> TIA



 
Reply With Quote
 
Shane Devenshire
Guest
Posts: n/a
 
      21st Feb 2009
Hi,

You could also set up conditional formatting in column B:

To conditionally format your cell(s):

In 2003:
1. Select the cells you want to format (here I am assuming B1:B10)
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=AND(OR(A1="Fail",A1="Other"),B1="")
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted (column B for you)
2. Choose Home, Conditional Formatting, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=AND(OR(A1="Fail",A1="Other"),B1="")
5. Click the Format button and choose a format.
6. Click OK twice

You can also write a formula which tells you how many are missing their entry:
in 2003:
=SUMPRODUCT(((A1:A10="Other")+(A1:A10="Fail"))*(B1:B10=""))
in 2007:
=SUM(COUNTIFS(A1:A10,{"Fail","Other"},B1:B10,""))

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"test" wrote:

> Greetings,
>
> We have excel sheets created everday for some tasks. There are 2
> columns that are getting filled manually.
>
> ColumnA: Filled with either SUCCESS, FAIL or OTHER
> ColumnB: If the columnA is filled with either FAIL or OTHER, then we
> are filling
> column B with some reason for these values. So in short, if ColumnA's
> value is either FAIL or OTHER, then ColumnB should NOT BE NULL.
>
> I am looking for a script in excel (macro or something) or a report
> that should tell me records(may be in a mail or any text file...)
> which have FAIL or OTHER in column A but column B is empty and the no
> of records matching this criteria.
>
> Is there a way to achieve this using some code in excel? Also, I have
> to make sure that ColumnA should not be having any values other than
> SUCCESS, FAIL or OTHER.
>
> For now, we are doing this manually. But we have lot of excel files
> and each one has pretty big data. I want to achieve this using a code
> in excel to avoid manual work.
>
> Can anyone please advise.
>
> TIA
>

 
Reply With Quote
 
test
Guest
Posts: n/a
 
      23rd Feb 2009
On Feb 21, 11:24*pm, Shane Devenshire
<ShaneDevensh...@discussions.microsoft.com> wrote:
> *Hi,
>
> You could also set up conditional formatting in column B:
>
> To conditionally format your cell(s):
>
> In 2003:
> 1. Select the cells you want to format *(here I am assuming B1:B10)
> 2. Choose Format, Conditional Formatting
> 3. Choose Formula is from the first drop down
> 4. In the second box enter the formula:
> =AND(OR(A1="Fail",A1="Other"),B1="")
> 5. Click the Format button
> 6. Choose a color on the Patterns tab (or any available option)
> 7. Click OK twice.
>
> In 2007:
> 1. Highlight all the cells on the rows you want formatted (column B for you)
> 2. Choose Home, Conditional Formatting, New Rule
> 3. Choose Use a formula to determine which cell to format
> 4. In the Format values where this formula is true enter the following
> formula:
> =AND(OR(A1="Fail",A1="Other"),B1="")
> 5. Click the Format button and choose a format.
> 6. Click OK twice
>
> You can also write a formula which tells you how many are missing their entry:
> in 2003:
> =SUMPRODUCT(((A1:A10="Other")+(A1:A10="Fail"))*(B1:B10=""))
> in 2007:
> =SUM(COUNTIFS(A1:A10,{"Fail","Other"},B1:B10,""))
>
> --
> If this helps, please click the Yes button
>
> Cheers,
> Shane Devenshire
>
>
>
> "test" wrote:
> > Greetings,

>
> > We have excel sheets created everday for some tasks. There are 2
> > columns that are getting filled manually.

>
> > ColumnA: Filled with either SUCCESS, FAIL or OTHER
> > ColumnB: If the columnA is filled with either FAIL or OTHER, then we
> > are filling
> > column B with some reason for these values. So in short, if ColumnA's
> > value is either FAIL or OTHER, then ColumnB should NOT BE NULL.

>
> > I am looking for a script in excel (macro or something) or a report
> > that should tell me records(may be in a mail or any text file...)
> > which have FAIL or OTHER in column A but column B is empty and the no
> > of records matching this criteria.

>
> > Is there a way to achieve this using some code in excel? Also, I have
> > to make sure that ColumnA should not be having any values other than
> > SUCCESS, FAIL or OTHER.

>
> > For now, we are doing this manually. But we have lot of excel files
> > and each one has pretty big data. I want to achieve this using a code
> > in excel to avoid manual work.

>
> > Can anyone please advise.

>
> > TIA- Hide quoted text -

>
> - Show quoted text -


Thanks Max/Shane. That works well. Also, is it possible to have user
know about any pending values he needs to fill when he closes the
excel sheet. I mean when he tries to close the excel, a pop up that
shows if any column (with values as FAIL or OTHER) is not filled with
any reasons.

TIA
 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      23rd Feb 2009
Welcome. Try a new post in .programming for your new query.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"test" <(E-Mail Removed)> wrote
Thanks Max/Shane. That works well. Also, is it possible to have user
know about any pending values he needs to fill when he closes the
excel sheet. I mean when he tries to close the excel, a pop up that
shows if any column (with values as FAIL or OTHER) is not filled with
any reasons.

TIA


 
Reply With Quote
 
test
Guest
Posts: n/a
 
      28th Feb 2009
On Feb 24, 3:37*am, "Max" <demecha...@yahoo.com> wrote:
> Welcome. Try a new post in .programming for your new query.
> --
> Max
> Singaporehttp://savefile.com/projects/236895
> Downloads:23,500 Files:370 Subscribers:66
> xdemechanik
> ---
> "test" <harpreet.n...@gmail.com> wrote
> Thanks Max/Shane. That works well. Also, is it possible to have user
> know about any pending values he needs to fill when he closes theexcelsheet. I mean when he tries to close theexcel, a pop up that
> shows if any column (with values as FAIL or OTHER) is not filled with
> any reasons.
>
> TIA


Thanks Max. I have done that.
 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      2nd Mar 2009
> Thanks Max. I have done that.
Thanks for the note drop. Yes, and I can see you've got some great responses
there already. Bottoms up!
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auditing excel sheets for everyday task test Microsoft Excel Worksheet Functions 1 21st Feb 2009 12:53 PM
File Auditing: 'Folder Tasks' must be enabled ? Skybuck Flying Windows XP General 3 19th Jul 2004 09:31 AM
File Auditing: 'Folder Tasks' must be enabled ? Skybuck Flying Windows XP Security 2 18th Jul 2004 05:15 PM
Scheduling an excel file to run everyday Marc April Microsoft Excel Misc 1 22nd Jan 2004 09:48 PM
Re: Word and Excel lockup at same time everyday Chris Lanier Windows XP General 0 5th Sep 2003 12:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:30 PM.