I want to show pop up message to the user for the following scenario in Excel Sheet
In Excel Sheet, If values in A1 and A2 are not equal then the message should pop up with some entered text like "The value in A1 should be > A2") which guides user entering correct value.
Please let me know.
Thanks!
The easiest way to do this, is using the inbuild data-validation of excel.
You find it on the data-tab on the ribbon-menu - looks like this:
You would need to set it up as "user defined" and specify your formula as =A1>=A2.
Further you can setup your "The value in A1 should be > A2" message to be displayed on cell-selection (input message) or as the pop-up messeage on entering a false number (error alert).
You will need to setup this data-validation for both A1 & A2, in order to have it displayed on any change of their relation.
Related
Using data validation, I constructed a dropdown list in cell "A1" in Excel that says "Yes" and "No."
What I want is for the user to select "Yes" or "No" in cell "A1." It should not be left blank; instead, it should alert us that "cell A1 should not be blank."
What is the best way to do this in Excel? Could someone please assist me?
In B1, put the formula:
=IF(ISBLANK(A1)," Must enter a choice"," OK")
(The spaces allow room for the Data Validation dropdown arrow.)
I have a dropdown menu in cell A1 with different mode options (ex mode A, mode B, mode C) and next to this theres another drop down in cell A2 where the user can enter the level they want (ex. level 1, level 2, level 3). Then, theres a cell (B2) where they enter a number between 1 and 3. I would like a pop-up message to appear when the user clicks on B2 and the options are set to mode C and level 2 or 3. So far I have been using this in the data validation box but the input message appears all the time, even if the specified modes/levels arent there. The data validation is in cell B2
=AND(ISNUMBER(FIND("mode C", A1)), OR(ISNUMBER(FIND("Level 2", A3)),ISNUMBER(FIND("Level 3", A2)))
Joey,
I got some workaround to solve your issue. see below -
i defined the formula in one cell(for custom validation purpose) that will give me output as TRUE & FALSE
=IF(AND(A1="Mode C",OR(A3="Level 2",A3="Level 3")),TRUE,FALSE)
Let assume i have this formula in Cell B1.
Now My Custom Validation formula will become like below for Cell B2 -
=$B$1=FALSE
Thats All.
I am having an issue naming my excel chart title using a combination of a cell reference and text. Whether I try the CONCATENATE function or just the ampersand operator, excel doesn't like it and I cannot figure out why.
Using ='Input Data'!$B$3:$F$3 & " DollarvsDepth", I receive the error "There's an error in the formula you entered"
Using =CONCATENATE('Input Data'!$B$3:$F$3, "DollarvsDepth") I get "That function isn't valid"
I would like to be able to name the chart from the text from a merged cell B3 through F3 on the 'Input Data' sheet, as well as some static text. Is this possible?
I am posting this to follow up on the comment I left above. The issue here seems to be that Excel does not like having a chart title referencing a cell which contains a formula. So, one workaround might be to create a new cell which just references your current cell with a formula. This may not be the most ideal solution, but it is one to consider.
When dealing with a merged cell, only the top-left cell reference is valid.
='Input Data'!$B$3 & " DollarvsDepth"
Try:
=CONCATENATE('Input Data'!B3, " ", 'Input Data'!C3," ",'Input Data'!D3," ",'Input Data'!E3," ",'Input Data'!F3," ","DollarvsDepth")
Input Sheet:
Output Sheet:
I have a question which I believe requires a bit of coding but I could be wrong.
I am trying to create a pdf catalog using excel and publisher together. Publisher uses the data in excel spreadsheet to automatically create a catalog.
I would like to create a user input box for clients to type a quantity (with a default value of "0").
I would like to add a formula to my user input box so that whatever number the client enters as quantity, it will multiply that value by the price in cell "C1".
I would like the default to be 0 in the input box.
If the user inputs (e.g. 5) then I would like to multiply that value by C1 (e.g. $2.99) and then display the result in a separate cell (e.g. E1)
If there is an easier way to incorporate quantity x price using excel and user input for quantity please let me know.
Than
You could use a simple UserForm with a TextBox and Label with code as below
updated for your new comment to dump to e1
Code uses cells on first worksheet.
Private Sub TextBox1_Change()
Me.Label1 = CLng(Me.TextBox1) * Sheets(1).[c1].Value
Sheets(1).[e1].Value = Me.Label1
End Sub
[
You enter the formula in the result cell. The price cell is set by you and should not be editable by the user. The quantity cell should be edited by the user.
The result cell would have a formula like '=A1*B1'. Really trivial actually.
I'm facing problem a with Crystal report. I want to display location like
J1 // One by one
J3
in data table. Then I want check condition like if J3 and OT='YES' (OT column from datatbase), if true means I want show J3 as bold.
How can I achieve this?
Right click on the field that displays the J1, J3 and click on Format Object to enter the Format Editor.
In the font tab you can find the Style property as shown below:
Click on the [x+2] button which is on the right side of the style property and write the following code there
if {DataTable1.ColumnName} = "J3" and {DataTable1.OT} = "YES" then
crBold
else
crRegular
Replace the DataTable1 with the name of your data source and the ColumnName with the name of the field that holds the J1, J3.