A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Data Valid - refers to the values of 2 cells



 
 
Thread Tools Display Modes
  #1  
Old September 14th, 2009, 07:43 AM posted to microsoft.public.excel.newusers
ash3154
external usenet poster
 
Posts: 18
Default Data Valid - refers to the values of 2 cells

How would I insert in my input box of data validation the values of cells D6
and F4

basically if the user clicks on a cell F6 I want it to reference f4 and d6
if they are in cell f8 I would like it to reference f4 and d8
if they are in cell ax106 I would like to refernece ax4 and d106... so on.
  #2  
Old September 14th, 2009, 07:11 PM posted to microsoft.public.excel.newusers
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Data Valid - refers to the values of 2 cells

You cannot use a union as the source of a list, so I would simply reference both cells somewhere
else, say =F4 in cell F100 and =D6 in cell F101 and then use F100:F101 as the DV list source. You
can then copy those cells across the sheet as needed.

--
HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
...
How would I insert in my input box of data validation the values of cells D6
and F4

basically if the user clicks on a cell F6 I want it to reference f4 and d6
if they are in cell f8 I would like it to reference f4 and d8
if they are in cell ax106 I would like to refernece ax4 and d106... so on.



  #3  
Old September 15th, 2009, 03:43 AM posted to microsoft.public.excel.newusers
ash3154
external usenet poster
 
Posts: 18
Default Data Valid - refers to the values of 2 cells

Thanks Bernie --
I am in cell F6 -- I click on Data Validation, click input message, under
input message box I type in =f100:f101: What I like to do is to show the
values of cells f100 and 101 when I click on F6. Is that even possible?

( Right now I get a message box with =f100:F101)



"Bernie Deitrick" wrote:

You cannot use a union as the source of a list, so I would simply reference both cells somewhere
else, say =F4 in cell F100 and =D6 in cell F101 and then use F100:F101 as the DV list source. You
can then copy those cells across the sheet as needed.

--
HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
...
How would I insert in my input box of data validation the values of cells D6
and F4

basically if the user clicks on a cell F6 I want it to reference f4 and d6
if they are in cell f8 I would like it to reference f4 and d8
if they are in cell ax106 I would like to refernece ax4 and d106... so on.




  #4  
Old September 15th, 2009, 05:05 AM posted to microsoft.public.excel.newusers
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Data Valid - refers to the values of 2 cells

Choose "List" as your option and select F100:F101 in the range selector box.

HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
news
Thanks Bernie --
I am in cell F6 -- I click on Data Validation, click input message, under
input message box I type in =f100:f101: What I like to do is to show the
values of cells f100 and 101 when I click on F6. Is that even possible?

( Right now I get a message box with =f100:F101)



"Bernie Deitrick" wrote:

You cannot use a union as the source of a list, so I would simply
reference both cells somewhere
else, say =F4 in cell F100 and =D6 in cell F101 and then use F100:F101 as
the DV list source. You
can then copy those cells across the sheet as needed.

--
HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
...
How would I insert in my input box of data validation the values of
cells D6
and F4

basically if the user clicks on a cell F6 I want it to reference f4 and
d6
if they are in cell f8 I would like it to reference f4 and d8
if they are in cell ax106 I would like to refernece ax4 and d106... so
on.





  #5  
Old September 17th, 2009, 04:11 AM posted to microsoft.public.excel.newusers
ash3154
external usenet poster
 
Posts: 18
Default Data Validation - refers to the values of 2 cells

Hi Bernie,

I already have data in F6, All I would like is a message box which shows the
values of D6,F4.

"Bernie Deitrick" wrote:

Choose "List" as your option and select F100:F101 in the range selector box.

HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
news
Thanks Bernie --
I am in cell F6 -- I click on Data Validation, click input message, under
input message box I type in =f100:f101: What I like to do is to show the
values of cells f100 and 101 when I click on F6. Is that even possible?

( Right now I get a message box with =f100:F101)



"Bernie Deitrick" wrote:

You cannot use a union as the source of a list, so I would simply
reference both cells somewhere
else, say =F4 in cell F100 and =D6 in cell F101 and then use F100:F101 as
the DV list source. You
can then copy those cells across the sheet as needed.

--
HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
...
How would I insert in my input box of data validation the values of
cells D6
and F4

basically if the user clicks on a cell F6 I want it to reference f4 and
d6
if they are in cell f8 I would like it to reference f4 and d8
if they are in cell ax106 I would like to refernece ax4 and d106... so
on.





  #6  
Old September 17th, 2009, 04:11 PM posted to microsoft.public.excel.newusers
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Data Validation - refers to the values of 2 cells

You could use a macro:

Sub Macro1()
Dim myC
For Each myC In Range("F6:AX6")
With myC.Validation
.Delete
.Add Type:=xlValidateInputOnly
.InputTitle = "These are those values!"
.InputMessage = myC.Offset(0, -2).Value & ", " & myC.Offset(-2, 0).Value
.ShowInput = True
End With
Next myC
End Sub

You could run the macro from the change event, if any of those values are changed.

HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
...
Hi Bernie,

I already have data in F6, All I would like is a message box which shows the
values of D6,F4.

"Bernie Deitrick" wrote:

Choose "List" as your option and select F100:F101 in the range selector box.

HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
news
Thanks Bernie --
I am in cell F6 -- I click on Data Validation, click input message, under
input message box I type in =f100:f101: What I like to do is to show the
values of cells f100 and 101 when I click on F6. Is that even possible?

( Right now I get a message box with =f100:F101)



"Bernie Deitrick" wrote:

You cannot use a union as the source of a list, so I would simply
reference both cells somewhere
else, say =F4 in cell F100 and =D6 in cell F101 and then use F100:F101 as
the DV list source. You
can then copy those cells across the sheet as needed.

--
HTH,
Bernie
MS Excel MVP


"ash3154" wrote in message
...
How would I insert in my input box of data validation the values of
cells D6
and F4

basically if the user clicks on a cell F6 I want it to reference f4 and
d6
if they are in cell f8 I would like it to reference f4 and d8
if they are in cell ax106 I would like to refernece ax4 and d106... so
on.







 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:35 AM.


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