Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
smistretta
 
Posts: n/a
Default Making a column or cell required

I posted this a few days ago and got some good responses, but nothing that's
actually accomplishing what I had hoped (maybe it really just can't be done)

The specifics a
Creating an NPO reimbursement form where, in order for the form to be valid,
the employee needs to enter a project code into a column entitled '"Project"

The goal is to make it so that if this column is not filled in, an error
message will show up in the Grand Total or the person will be unable to
complete any more cells--sort of an enforced entry

Excel details:
Project column is column J
Grand Total cell is L22
Columns where expenses are entered are from B to I (Project is last column)
Rows where expenses are entered are from 8 to 21, with 22 being each
column's total
Not all rows/cells have to be filled in for the form to be valid but if a
row is used, it must (ideally) have a required Project code

I have tried:
1. An IF statement in the Grand Total cell (L22) but this leaves me with a
'true' or 'false' entry, not a number as it needs to be
2. A Validation where the employee has to select from a list of project
codes but an erro will only show up if they type an incorrect code, not if
they leave it blank

I'm new to this, so any other thoughts, ideas or help at all will b greatly
appreciated. Thank you in advance!
  #2   Report Post  
Posted to microsoft.public.excel.charting
HEK
 
Posts: n/a
Default Making a column or cell required

Hi:
Re #2: make sure your list of projects is picked from an accurate range,
i.e. not including an empty cell AND make sure "ignore blank" is selected.
Then the user cannot select a blank (i.e. leave it blank). You must protect
the cell from changing (choose Format/Cells/Protection and check Locked
(which is the usual default).

This doesnt prohibit selecting the wrong project. For this, you might add
to yr list of projects [Select Project].
Next, make your costs input conditional on the selection of the project
code. For the cell where cost entries are required, choose Data/Validation
and choose Custom in the Allow field. Now put in the Formula field
=$J1<"[Select project]" Copy this to all cells where costs needs to be
entered. This will create an error when no project code is selected (i.e.
where the project cell has the text [Select Project]), and a cost cannot be
entered. With conditional formatting you can make quick visual checks, e.g.
you can assign unique colours per project. Don't forget to protect the cells
and the sheets (otherwise the cell protections are not activated) to protect
the sheet from changing / deleting critical cell contents.
GL,
Henk


"smistretta" wrote:

I posted this a few days ago and got some good responses, but nothing that's
actually accomplishing what I had hoped (maybe it really just can't be done)

The specifics a
Creating an NPO reimbursement form where, in order for the form to be valid,
the employee needs to enter a project code into a column entitled '"Project"

The goal is to make it so that if this column is not filled in, an error
message will show up in the Grand Total or the person will be unable to
complete any more cells--sort of an enforced entry

Excel details:
Project column is column J
Grand Total cell is L22
Columns where expenses are entered are from B to I (Project is last column)
Rows where expenses are entered are from 8 to 21, with 22 being each
column's total
Not all rows/cells have to be filled in for the form to be valid but if a
row is used, it must (ideally) have a required Project code

I have tried:
1. An IF statement in the Grand Total cell (L22) but this leaves me with a
'true' or 'false' entry, not a number as it needs to be
2. A Validation where the employee has to select from a list of project
codes but an erro will only show up if they type an incorrect code, not if
they leave it blank

I'm new to this, so any other thoughts, ideas or help at all will b greatly
appreciated. Thank you in advance!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return SEARCHED Column Number of Numeric Label and Value Sam via OfficeKB.com Excel Worksheet Functions 23 January 30th 06 06:16 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
How do I reference every "n" cell in a column in Excel? Alma Excel Worksheet Functions 2 March 22nd 05 06:19 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"