Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 493
Default Data Validation - Insert Row

Hi,

I have been trying to figure this out but, cant seem to find a solution.
Please Help.

Cell A1 will show lists of categories (fruits or veggies), cell B1 is
dependent on A1 and will show its items depending on what I choose in A1. Up
to here, no problem.

But I want something a little different. I want cell A1 to show lists of
categories and have the rest of column A be dependent on cell A1. If I select
the rest of the column and have it refer back to cell A1, excel automatically
adjusts the formula to each cell (e.g. A2 refer to A1, A3 refer to A2€¦.and so
on); this way I have to change it cell manually.

Another thing and this is the most important to me. Is there a way to insert
an empty row if the user selects €śother€ť in the list in cell A1? (e.g. the
user wants a category that is not available, so he chooses €śother€ť in the
reference cell, A1, so another row will be inserted and he will be able to
type what he wants). I know something close to this can be done with
€śunchecking€ť the error message, but I want to know if its possible to have
an extra row inserted.

Thanks a lot

Alex

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Data Validation - Insert Row

You can't insert a row by means of a formula - you would need a macro
to do that.

I don't quite understand what you are saying about cell references -
if you make it A$1 then the row part will not change.

Hope this helps.

Pete


On Feb 29, 12:51 pm, Alex wrote:
Hi,

I have been trying to figure this out but, can't seem to find a solution.
Please Help.

Cell A1 will show lists of categories (fruits or veggies), cell B1 is
dependent on A1 and will show its items depending on what I choose in A1. Up
to here, no problem.

But I want something a little different. I want cell A1 to show lists of
categories and have the rest of column A be dependent on cell A1. If I select
the rest of the column and have it refer back to cell A1, excel automatically
adjusts the formula to each cell (e.g. A2 refer to A1, A3 refer to A2....and so
on); this way I have to change it cell manually.

Another thing and this is the most important to me. Is there a way to insert
an empty row if the user selects "other" in the list in cell A1? (e.g. the
user wants a category that is not available, so he chooses "other" in the
reference cell, A1, so another row will be inserted and he will be able to
type what he wants). I know something close to this can be done with
"unchecking" the error message, but I want to know if it's possible to have
an extra row inserted.

Thanks a lot

Alex


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 493
Default Data Validation - Insert Row

Hey, Pete

Yes, you helped. I oversaw the "$" symbol.

But, about that macro you are talking about how would I do that? Any ideas??

Thanks

"Pete_UK" wrote:

You can't insert a row by means of a formula - you would need a macro
to do that.

I don't quite understand what you are saying about cell references -
if you make it A$1 then the row part will not change.

Hope this helps.

Pete


On Feb 29, 12:51 pm, Alex wrote:
Hi,

I have been trying to figure this out but, can't seem to find a solution.
Please Help.

Cell A1 will show lists of categories (fruits or veggies), cell B1 is
dependent on A1 and will show its items depending on what I choose in A1. Up
to here, no problem.

But I want something a little different. I want cell A1 to show lists of
categories and have the rest of column A be dependent on cell A1. If I select
the rest of the column and have it refer back to cell A1, excel automatically
adjusts the formula to each cell (e.g. A2 refer to A1, A3 refer to A2....and so
on); this way I have to change it cell manually.

Another thing and this is the most important to me. Is there a way to insert
an empty row if the user selects "other" in the list in cell A1? (e.g. the
user wants a category that is not available, so he chooses "other" in the
reference cell, A1, so another row will be inserted and he will be able to
type what he wants). I know something close to this can be done with
"unchecking" the error message, but I want to know if it's possible to have
an extra row inserted.

Thanks a lot

Alex



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Data Validation - Insert Row

Glad to be of help.

Regarding the macro, I can't really help you with that, but perhaps one of
the more experienced VBA contributors will chip in. If not, then you might
like to repost in the .programming group.

Pete

"Alex" wrote in message
...
Hey, Pete

Yes, you helped. I oversaw the "$" symbol.

But, about that macro you are talking about how would I do that? Any
ideas??

Thanks

"Pete_UK" wrote:

You can't insert a row by means of a formula - you would need a macro
to do that.

I don't quite understand what you are saying about cell references -
if you make it A$1 then the row part will not change.

Hope this helps.

Pete


On Feb 29, 12:51 pm, Alex wrote:
Hi,

I have been trying to figure this out but, can't seem to find a
solution.
Please Help.

Cell A1 will show lists of categories (fruits or veggies), cell B1 is
dependent on A1 and will show its items depending on what I choose in
A1. Up
to here, no problem.

But I want something a little different. I want cell A1 to show lists
of
categories and have the rest of column A be dependent on cell A1. If I
select
the rest of the column and have it refer back to cell A1, excel
automatically
adjusts the formula to each cell (e.g. A2 refer to A1, A3 refer to
A2....and so
on); this way I have to change it cell manually.

Another thing and this is the most important to me. Is there a way to
insert
an empty row if the user selects "other" in the list in cell A1? (e.g.
the
user wants a category that is not available, so he chooses "other" in
the
reference cell, A1, so another row will be inserted and he will be able
to
type what he wants). I know something close to this can be done with
"unchecking" the error message, but I want to know if it's possible to
have
an extra row inserted.

Thanks a lot

Alex





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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
data validation invalid in dynamic validation list ilia Excel Discussion (Misc queries) 0 November 7th 06 12:54 PM
data validation invalid in dynamic validation list ilia Excel Worksheet Functions 0 November 7th 06 12:54 PM
Data validation with validation lists and combo boxs Keith Excel Discussion (Misc queries) 1 October 12th 06 11:08 AM
Embedding an "insert row" macro with data validation Mr. G. Excel Worksheet Functions 0 April 11th 05 06:09 AM


All times are GMT +1. The time now is 06:57 PM.

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"