Is it possible to write a formular in excel that generates a formular, I do not have an example yet, but I would like to insert a SEQUENCE in the formular, and thereby save a lot of work, I just need some kind of example :-)
Easy one:
=INDEX(A:A,5)
will give you the value in A5 and :
=INDEX(A:A,SEQUENCE(5))
will give you the values in A1 through A5
Related
My first post here, maybe someone will be able to help.
I have a large Excel table with data from labs. Some results are below LOD And I need to remove them as I do not need them.
So basically I need to clear data in one cell, say E11, if data in D11 shows "<". Meaning below LOD.
If possible I would like to replace value in E11 with "-".
Is there any one who could help me please.
There are a few ways to go about this and you don't really need VBA.
Without VBA - Create a filter on your results and simply filter away the "<" - you could copy and paste this filtered table to another sheet
You could use a cell formula to help you identify results: =IF(A1="<","",B1) which would look at A1, if A1 was a < then it'd return nothing, otherwise it'll return value in cell B1.
With VBA - you'd basically be applying the same logic, just written in code. If you really want to do this, then look up how to do a loop first and how to use IF logic...
enter image description here
This is the worksheet I work with. I would like to clear all the values where < is next to them. This is just part of much bigger table.
We have a spreadsheet at work, and we use it to keep track of various metrics, a few having to do with call lengths. The spreadsheet has been the same for years, but we now have a call time of 51:59 (mm:ss) which has broken the old format.
I am researching how to make it work as desired, and so far the best solution is to format the cell as [m]:ss and enter the time in the cell as 0:51:59. This gives the outcome desired, and performs all the calculations correctly, except I want to be able to achieve this without the leading zero. Ideally, someone could enter 51:59 into the cell, and it would read 51:59 and not 3119:00.
Does anyone know how to achieve what I am looking for? Any help would be greatly appreciated. I am comfortable with macros, so if there is a way to achieve this with a macro that would work, but ideally I am looking for a solution without a macro.
Thank you.
There is no way you can do this. The closest one is the following workaround:
Define cell A1 format as hh:mm and cell B1 format as mm:ss.
Enter formula =A1/60 into B1.
This will display 51:59 in B1 when you type 51:59 into A1.
Unfortunately, A1 text will read not-so-intuitive value after it loses the focus.
The workaround is described here:
https://superuser.com/a/235924
I want to write somthing in cell A1 and it should get replace with A1*100 automatically. Can we do this?
e.g. If i type 23 in Cell C2, then this value should get replace with (C2*100)
You are looking for something like this. It gives a good outline of how to trigger a macro when an event happens, like changing the value of certain cells. There is also this, from Microsoft that explains Worksheet.Change(Target).
Here I am going to ask one funny question that is in excel sheet,
Let's consider Cell B3 contain value as 3*35, and cell C3 value is =B3 as show below
But my funny expectation is when set C3 value is =B3 it must show C3 value as 105 (I mean I want to make it relevant to C3=3*35 => 105 ) is it possible.
I hope viewer will understand my question.
first of all, typing =3*35 in a cell by itself would have given you the answer right away.
either your question is missing something, like the reason why you want to do it the way you described or you have overlooked something, like using a proper formula.
anyway from your description it sounds like what you want to do is to take a text representation of a formula and then tell excel to calculate it.
if thats what you want then take a look at this question:
How to turn a string formula into a "real" formula
In my current sheet I have some numbers in a column, which represent the row which I want to get the data from in another sheet. And I want to get it from the same column in which I am using the function...
I know using =Sheet1!A1 for instance gets me what is in A1 on Sheet1
and
=CONCATENATE("A",A1) being on sheet two, brings me back A + whatever value is stored in A1 on sheet number two... for simplicity let's say it's a one... so it would return A1
I am on Sheet2
I'm trying
=Sheet1!CONCATENATE("A", A1)
but the formula contains an error, I've tried rewriting this in many ways but it never works... any idea what the correct syntax I need is?
Greatly appreciated!
THanks
As Magicianeer said, you have to use the INDIRECT function. For your example:
=INDIRECT(CONCATENATE("Sheet1!","A",A1))
Should give the results you need.
However, it's a bit lengthy, and you can use & instead of CONCATENATE, and you can directly use Sheet1!A:
=INDIRECT("Sheet1!A"&A1)
What is evaluated in the brackets is Sheet1!A1, and INDIRECT converts this from text to a reference.
Try:
=CONCATENATE("A", Sheet1!A1)