This might be an easy one but in cell A2 I got a value of "123-123 Example Text" how can I make it copy only "123-123" and put the value in cell A3.
Second part in B2 I have "123-123" and in B3 I got "www.website.com/image/X.jpg" is there a way to tell it to take B2 and insert it instead of X in B3?
in A3 add the formula
=LEFT(A2,7)
in B3 you would need to put
="www.website.com/image/"&B2&".jpg"
Note:
If in the first part if the value 123-123 could be longer or shorter you would need to find the first space and then cut it to there using a formula like so
=LEFT(A2,FIND(" ",A2,1)-1)
Related
Short summary, to refer to the cell C5, rather than saying =C5 , i need to use =C(a+b) , because the row number is variable and calculated using a formula, but the reference =C(a+b) doesn't work.
In Microsoft Excel, I am using =MATCH(A1, B:B, 0) to get the row number at which the value at A1 exists in Column B. For eg it returns 5. How do i refer to Column C and Row[returnedValue] i.e. C5 if i am writing the formula in one line? i.e. i tried using
=C(MATCH(A1, B:B,0)) to refer to Column C and Row 5 , but it doesn't work.
The INDIRECT function will do this for you.
To Test ...
Put the words "This is a test" in cell A1.
In cell A2, put the text "1"
In cell A3, put this formula ...
="A" & A2
Finally, in cell A4, add this formula ...
=INDIRECT(A3)
... that should then return the text within A1.
This demonstrates how it works so you should be able to apply it to your scenario. I suspect something like this will work for you?!? ...
="C" & (MATCH(A1, B:B,0))
... barring additional error checking of course.
If I type Sheet2!A3 in A1 Cell of Sheet1, it will show the value of A3 cell of Sheet2. But I want to use this reference link from a cell in Sheet1
Please, look at the snapshot. I want to use the C1 cell to get the Sheet2 part of Sheet2!A3. So If I change the value of C1 from Sheet2 to Sheet3, then the formula in A1 will be changed to Sheet3!A3.
How to achieve this?
Try: =INDIRECT($C$1&"!A" & ROW() + 2)
This will mean you can have any sheet name in C1, and it should be able to get whatever cell you specify in the quotes (don't forget the exclamation mark!)
EDIT: Sorry, I missed that part, I've updated it now and it should work to increment.
You can add in another cell to make things simpler
In Sheet2 A3 i have the Value 10
And these formula Get that value with just some simple Indirect reference
If you want to make A3 Dynamic as well then :
The Aim is to get a cell which constructs the name of the cell/s you want to reference and then you can indirect Reference them accordingly.
I'm very new to excel, and I'm trying to figure this out...
If any cells in column A are empty or have the word 'EMPTY' I want it to generate the word 'EMPTY' into a cell in a different column. For example: If A1 and A2 have the word 'EMPTY' in the cell, then I want the matching cell in column D to have that word as well (D1 and D2).
I have been messing around with =if(A2,EMPTY)(D2,EMPTY), but I'm clearly missing something.
I'm sorry if this has been asked, or is so simple, it's hard to phrase the exact wording to find a question that will give me an answer.
Using your example, in cell D1 use this formula and then copy it down:
=IF(OR(COUNTIF(A1,"*empty*")>0,A1=""),"EMPTY","NOT EMPTY")
You can replace the "NOT EMPTY" with the result of your choice for if the cell isn't empty, or you can just use "" to return a blank result.
Try this:
=IF(OR(A1="empty",""),"empty",0)
Assuming you've put "empty" in cell A1, or if the cell A1 is empty as well. You can then increment that formula from, say, B1 down to B10 (then B2 will be checked against A2, B3 against A3, etc).
As a general rule, in Excel, if in the formular bar you start typing
=IF(
Then there will be a small drop-down text that will give you a clue as to what to write next...
For example I have cells A1,B1,C1. A1 and B1 are empty and C has a formula = A1+B1. I would like to do is that C1 will add A1 + B1 once B1 is no longer empty.
In reality, there would be D1,E1,F1 ... so forth with formulas as well. I can put the formulas inside a Workbook_change routine, but it would be very buggy if you do a copy and paste. I was wondering if there is another way of doing it?
You don't need VBA. In C1 you can enter this formula:
=IF(AND(LEN(A1)>0,LEN(B1)>0),A1+B1,"")
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.