Conditional text in a text box depending on drop down box values - text

I'm having all sorts of fun trying to get a text box to display a message depending on the contents of two dropdown selection boxes.
I have a small list of messages I would like displayed depending on what the dropdown box contents are eg.If dropdown box 1 (contained in cell N7) had ON selected AND dropdown box 2 (in cell N8) was also ON then a message contained in cell AA25 would populate the message box. Similarly, if N7=yes and N8=no then the text contents of AA26 would show up instead.
If none of the conditions are true then I need a blank box (necessary) or even a random text from a list of inspirational quotes!! (Not entirely necessary but it would be fun!!)
I know how to link a message box to a cell content but each time I try to use boolean it tells me I'm missing something! I tried some of the examples listed on other folk's questions to no avail.
Here's my somewhat simple code when I try to use boolean..
=IF $N$7="ON" AND $N$8="ON" THEN $AA$25 Very basic as you can see but I like simple!!
I get a range reference or defined name error.. as you can tell, I'm new to this but learning slowly. Any help would be appreciated. Eventually there will be several IF/AND/OR statements in the conditions with different text for each result.
Thank you.

Related

How to have content shown next to a table with hidden rows excel

I have a table with dropdowns that will hide certain rows. To the right of this table, I want to have some content, but can't do this as it will be hidden when these dropdowns are selected. I currently have the content to the bottom right of the sheet and have tried splitting the screen to have them both showing but this does not work either. Any ideas on how I can have the two showing side by side? Thanks!
I've gotten around this by using Text Boxes. After creating the text box, change the properties to "do not move or size".
In the picture below, there are two text boxes.
-- The first one is just static text that you copy/paste in there. This works fine as long as you have the same info displayed all the time.
-- The second one has the ability to be somewhat dynamic, where it references the contents of another cell. That cell can be anywhere (this sheet, another sheet, doesn't matter). So in this example...
Cell L1 formula: =TEXTJOIN(CHAR(10), TRUE,E1:E3)
Textbox formula: =Sheet4!L1
No matter how you filter/hide, those text boxes won't move.

ms excel - data validation for 2 drop down list

I'm looking for the solution in excel data validation for 2 drop down list.
When I choose 1st drop down list 2nd drop down list will auto populate the correct value from table. If user choose 2nd drop down list 1st drop down list will auto populate the value also.
Can someone help me on this issue ?
I attach the sample file for my problem.
enter image description here
enter image description here
thanks!
Sample File
Trying to do a two way I don't think is going to work in the way you are trying so I am not surprised the examples you found were for one-way. I am open to being corrected.
You could hack around it for example using two form control listboxes linked to the same cell so a selection in one updates the other.
Then because an item might be out of view listbox underneath have two cells which use the linked cell to index back into the source lists.
In the example above, there are two list boxes from form controls in developer tab (customize ribbon > add developer tab.
Developer tab form control - 2nd from the right
You add two of these in to the sheet.
Right click format control on each one
Set the input range to the range containing your list of values for that listbox and set the linked cell e.g. G1
Ensure that whilst you select different input ranges for each list box, they should have the same linked cell e.g. G1.
Underneath the listboxes put a formula which uses the linked cell G1 to index back into the source lists for each listbox so you can retrieve the selected value and have it visible, in case not visible within listbox.
Example testing:

Can you color individual items in a data validation drop-down list in excel?

It's as simple as this. Say I want to color "COPT" and "RAT GCU" Yellow can I color just those?
I tried conditional formatting tricks and they all work after the drop down item is selected.
I want the colors to be loaded only to certain list items to appear as soon as I click the drop-down arrow.
I'm not sure if this can be done but...
Additionally would anyone know the syntax to click a button to set the value of the list back to displaying "Please select"???? I already have a reset button that unfilters everything. So if I tie it to that button I think it'd work like a charm. I just don't know how to go about selecting the listbox as it's a data validation one and I can't seem to figure out how to define/declare the listbox and can't find it's name anywhere.
There is no way to color items in the DV list. If you want the cell to show "Please Select" when no choice was made, all you can do is enter that literal text into the cell. An empty cell will remain empty.

SSRS Visual Studio Expression for : If TXTBOX empty dont show data in TXTBOX 2

i have a report and the user has 2 text boxes if one text box is empty i want the other to not show anything
is there an expression to do so ?
so if i have
no data in a calculated field then i don't want to show anything in the other box,
as currently it shows regardless if theirs data or not.
ive tried looking at IfNothing but as this is
a condition baced on weather a seperate text box is populated then i dont think it will work
You can set the value of the second textbox based on the data in the first in the following way.
In the second textbox create a new expression as follows
=iif(isnothing(ReportItems!txtSource.Value), "Nothing", "Something")
Where txtSource is the name of the textbox you wish to inspect for data. When the value of txtSource is equivalent to null, in the example above Nothing is displayed, otherwise Something

Set Sharepoint drop down list equal to value entered in text box

I have a sharepoint list with several columns, one of which is a text box that is set to accept numbers. I would like to auto populate a drop down box based on the number entered into that text box.
I am not very code-savvy, and so far all the answers I have found involve getting a number/value from a drop down box to insert into a text field, not the other way around. Any help would be greatly appreciated!!
You need to set the SelectedValue of the dropdown in code based on the textbox value. You need to add an event handler to the textbox (I believe KeyPressed event should be a good start)

Resources