Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default can I add more than one data validation to a cell

I need to add data validation twice to a cell, but can't figure out
how.

Using the data below as an example

Record Type Hours
Hrs 8
Exp


In the Hours column I want to ensure that it can only be populated if
the Record Type column contains 'Hrs' and I want to only allow numbers.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default can I add more than one data validation to a cell

try this
custom
=and(isnumber(p2),m2="hrs")

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Ciarán" wrote in message
...
I need to add data validation twice to a cell, but can't figure out
how.

Using the data below as an example

Record Type Hours
Hrs 8
Exp


In the Hours column I want to ensure that it can only be populated if
the Record Type column contains 'Hrs' and I want to only allow numbers.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default can I add more than one data validation to a cell

That worked perfectly.
Thanks Don.

On Mar 6, 1:28*pm, "Don Guillett" wrote:
try this
custom
=and(isnumber(p2),m2="hrs")

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"Ciarán" wrote in message

...


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default can I add more than one data validation to a cell

Do you think you could take it one step further and based on Record
Type provided a drop down list?

So using

Record Type Hours Expense Type
Hrs 8
Exp XXXXXXXXX

So using a similar data set again, if Record Type = 'Exp', Expesnse
Type can be populated with either 'Food', 'Travel' or 'Phone' where I
have XXXXXXXXX

Regards,
Ciarán

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
cell data validation eggpap Excel Discussion (Misc queries) 1 March 20th 08 12:59 PM
Validation of data in a cell Danie Excel Discussion (Misc queries) 5 May 23rd 07 10:45 PM
Data Validation: Store cell address instead of value in the cell? WillW Excel Discussion (Misc queries) 1 January 31st 07 02:22 AM
Why does data validation not work when pasting data into a cell. rjshelby Excel Discussion (Misc queries) 1 July 31st 06 09:08 PM


All times are GMT +1. The time now is 08:53 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"