Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default data validation problem

What I need to be able to do is have a dropdown in the cells in a ro
where you can either select the cell value to be set as "N/A" OR se
the cell to be a given formula. Is this possible?

basically I have 5 columns which may need to have a formula in but the
will not all want the formula for every row, some rows will need to b
set to N/A. The problem then is that when someone inserts a new ro
underneath, I am guessing excel will not put the formulas into al
those 5 columns because the cell above it might have been set to N/A
meaning the users are going to have to keep trying to copy and past
formulas into the new row.

So I either need a way for the user to simply select N/A OR select th
formula for each of those cells from a dropdown, or i need t
automatically put the formula into those 5 columns every time a new ro
is inserted, and then the users can overwrite it with N/A if needed, s
they wont have to copy and paste anything.

Anyone know if any of this is possible? if not whats the easiest way t
do it? I need to make it quick and easy for people to enter new row
without having to muck about copying formulas

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default data validation problem

Hi
a solution for inserting rows with formulas:
http://www.mvps.org/dmcritchie/excel/insrtrow.htm

-----Original Message-----
What I need to be able to do is have a dropdown in the

cells in a row
where you can either select the cell value to be set

as "N/A" OR set
the cell to be a given formula. Is this possible?

basically I have 5 columns which may need to have a

formula in but they
will not all want the formula for every row, some rows

will need to be
set to N/A. The problem then is that when someone

inserts a new row
underneath, I am guessing excel will not put the formulas

into all
those 5 columns because the cell above it might have been

set to N/A,
meaning the users are going to have to keep trying to

copy and paste
formulas into the new row.

So I either need a way for the user to simply select N/A

OR select the
formula for each of those cells from a dropdown, or i

need to
automatically put the formula into those 5 columns every

time a new row
is inserted, and then the users can overwrite it with N/A

if needed, so
they wont have to copy and paste anything.

Anyone know if any of this is possible? if not whats the

easiest way to
do it? I need to make it quick and easy for people to

enter new rows
without having to muck about copying formulas.


---
Message posted from http://www.ExcelForum.com/

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default data validation problem

that solves the problem of excel not automatically copying formulas dow
to a new row but my problem is slightly more complicated in that i wan
set formulas in EVERY new row that are not nessessarily in the ro
above.

i.e.

E F G H I
===============
4 6 9 5 7
N/A 8 5 N/A 2
4 7 22 9 3

The numbers are all calculated by formulas. however sometimes I don
want the formula to apply and need to manually type in N/A instead.
but any new rows will need to have the formulas in each column b
default. i.e. if i was to try and insert a new row jus under the ro
containing the N/A's, i would need the new row to have the formulas i
every column, rather than excluding the ones with N/A above it.

I think what I may need to do is write a macro attached to a comman
button, the users enter N/A in the columns they dont want to apply
then click the button and the macro goes through the columns and if th
cell in the column is blank then insert the relevant formula, els
leave it alone.

Thats the only way I can see making it possible to have this kind o
setup without them manually copying an pasting formulas from othe
rows. Unless the macro you gave above can be modified so that instea
of copying formulas from above, it inserts a given formula in each o
the columns I need it in. This is probably the best way, I just don
know how I would modify that to insert a given formula into the colum
on the new row.

Thank

--
Message posted from http://www.ExcelForum.com

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
Problem with Data Validation George Excel Worksheet Functions 2 February 5th 08 03:31 AM
Data Validation Problem Few more questions[_2_] Excel Discussion (Misc queries) 1 February 20th 07 09:38 PM
Data Validation Problem Mark S Excel Worksheet Functions 0 January 19th 07 08:21 PM
Data validation problem Peter1999 Excel Discussion (Misc queries) 3 May 22nd 06 09:18 AM
Data Validation problem CodeSponge Excel Worksheet Functions 1 February 10th 05 01:51 AM


All times are GMT +1. The time now is 06:50 AM.

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

About Us

"It's about Microsoft Excel"