I can use the following formula to insert a URL into a row's empty S9 column that has a part number in the b9 column of the same row:
=CONCATENATE("https://www.website.com/search/?query=",b9,"&brand=all")
That turns it into a non-clickable URL, though; when the S9 cell is clicked on, the formula bar shows the formula and not a true link. Is it possible to next convert it to a clickable hyperlink?
Related
Is there a way to create a formula in one cell that will change the value in another cell based on some criteria, without scripting? Example: cell a1 contains a numerical value. cell b1 contains a value from a drop-down list, say, "YES,NO". If cell b1 is set to "YES" I want to remove (set to zero) the value in cell a1. What I'd like to do is have a formula in cell c1 that interrogates b1 and sets the value in a1 accordingly. Is the only way achieve this writing code and using setValue?
you cant remove it without a script. you can visually hide it in various ways. if the A1 is subject of further sum (as in your case per your comment) the sum formula can be always altered to reflect desired output. example:
if your formula is
=SUM(A1, C5, D22)
you can do
=SUM(IF(B1="YES", 0, A1), C5, D22)
Use the following on the cell you need the calculation (or zero) on:
=IF (B1="YES",0,SUM(A:A))
Using the given formula, you would do the SUM calculation for the whole Column A if the value on B1 is "YES", if not, then a 0 would be placed on the cell you put the formula on.
Is there a way in Excel 365 to reference a cell in a formula and lock it so that if I drag the referenced cell it does not change the cell reference in the formula?
I am using a spreadsheet to build a custom deck of cards, the last column uses =TEXTJOIN(" ", TRUE, G2, A2). The problem is that if I drag the first card data down to G8 and A8 the last column's formula will change automatically to =TEXTJOIN(" ", TRUE, G8, A8). I want the last column's formula to remain referenced to G2 and A2 even when I move the data and even an absolute reference will change when I move the data.
If I fill in the form normally then H displays correctly.
If I want to rearrange my cards in a different order and drag the data in A4:G4 to A8:G8 then the formula in H4 will change to displaying the text in G8 and A8 instead of remaining to display the original text in row 2 and the formula in row 8 is now errored.
Perhaps convert your data to a table using Ctrl + T, and then modify your formula to the following:
=TEXTJOIN(" ",TRUE,[#Name],[#['# In Deck]])
I searched the internet and could not find an answer.
I am looking for a NON-VBA solution, and this is not using traditional conditional formatting that changes the colors or patterns.
Is is possible to apply a spreadsheet number format to a cell that includes a cell value?
For example:
Cell A1 = 100
Cell B1 = 140
Cell C1 = 180
I would like to enter the value 100 into cell A2 and have A2 formatted to display:
100 to 140
Then enter the value 140 into cell B2 and have B2 formatted to display:
141 to 179
Then enter the value 180 into cell C2 and have C2 formatted to display:
≥ 180
Thank you for your time
you can do this, but it is a manual solution. you need to choose custom format for each cell and adjust the formatting so it will be unique to each cell. Its also going to be hard coded.
For first cell
Select cell A1
Select custom formatting
Enter the following format:
###" to 140"
Enter 100 in cell A1
For second cell
Select cell A2
Select custom formatting
Enter the following format:
"141 to 179"
Enter anything in cell A2
For third cell
Select A3
Select custom formatting
Enter the following format:
"≥ "
Enter 180 in cell A3
Now I personally consider this a bad idea. Its essentially hard coding all your formats. To change the display you will need to edit each cells format. However it will produce what you are looking for as a final result.
In the example below, column C is the values that were entered in column A.
I know how to link on cell to another so that its content changes to match the source cell.
I know how to transpose a row into a column.
Is there any way to transpose a row into a column with links that dynamically adjust to match their source?
Try locking your cell references before transposing them. Turn your formula from:
=B2
to
=$B$2
If you do not add the $ to the row and column part of the cell address, the address will change during the transpose operation.
In my example, I filled the cells A1 to E1 with their a1 to e1 to match their cell address. In the row below, I put =$A$1 in A2 and so on to =$E$1 in E2. You will notice the formula for E2 in the formula bar from this screen shot:
I then selected the cell for the top of my transposed column (in my case C4) and right clicked and selected paste special: (note there is a short paste transpose, but I cold not get the right click menu to screen shot)
And here we see the transposed column with the formula in C4 is =$A$1 and the formula in C8 is =$E$1
When one "Fills right in excel" , the Column name updates
eg.
1st cell
is
=A2
If I fill right the next cell will be =B2
But rather than the column incrementing I want to increment the row number
so 1st cell is
=A2
The cell on its right is
=A3
how do i do that?
If you're putting the first formula in B2 then
=OFFSET($A$2,COLUMN()-2,0)
The -2 part is because we're starting in column B. You need to change it for whatever column you're actually starting in such that the second argument equal zero.
You can do this using the INDIRECT function. Suppose we want formulas in cells B1, C1, D1... that should reference A2, A3, A4... Starting in cell B2 we can enter:
=INDIRECT("R[" & COLUMN(RC)-1 & "]C1", FALSE)
In cell B2, this will render as:
=INDIRECT("R[1]C1", FALSE)
In this situation, I'm using R1C1 format. The second parameter to the INDIRECT function tells the function to use R1C1 format. The function itself (again in cell B2), says "give me what is in the cell that is one row down and the first column". In the original formula, by basing the row value on the current column number, it will update the formula to a new row as you fill right.
Now, if you are asking if there is a way to do this using the GUI like say using the Fill box with the mouse, the answer is no. There is no means to transpose the fill using the GUI.