Hope someone has some experience with the following issue I have on excel:
Imagine that I'd like to get a value from cell Ai, however I want to consider "i" as input from another cell in the workbook. To make it more concrete, if "i" was a fixed number like 5, then "=A5" operation would work. In my case, I want this number 5 to be dynamic, I wonder if someone know the method.
Use INDEX:
=INDEX(A:A,Z1)
Where Z1 is the cell in which you put the row number.
Using INDIRECT:
=INDIRECT("A"&B1)
where B1 contains row number.
Related
I have been looking for an answer to this problem. I imagine it's fairly simple, but I think the problem is I don't really know exactly how to search it.
Basically, I want to change the reference in the formula by updating the column and row cells.
So, since the column and row cells say Q & 8, the formula updates to pull from Q8.
If I were to change the column to R, it would pull from R8 and equal 20.
Surely this is straightforward.. right? Please??
Thanks!!
=INDIRECT(ADDRESS(P12,COLUMN(INDIRECT(P11&"1"))))
For explaination how does it work please read about functions INDIRECT, ADDRESS and COLUMN
I am trying to find a number in a row of numbers that is between 0 and 100. But for my output, I either want a "--" if there is not a number between 0 and 100, or I want the actual numbers that fit with that range.
Here is an example of what I am trying to do: Example
Does anyone know how to solve this issue? I appreciate any help.
Use the logic you have already stated, just work step by step.
I'm assuming you want commas between the numbers, but you can adapt as necessary.
In a row under your input data (I'll assume it starts as B2), put in B3:
=if(and(B2>$B$1),(B2<$C$1),B2,"") and copy across.
Then in the next row in C4: =IF(D3="",C4,C4&D3&",") and copy across.
You either need to amend the formula in the first column, or (my preference) insert a blank column.
You then need to strip the last comma (E.g. =left(P4,len(P4)-1)
And it would be best to name the ranges B1 and C1 rather than just using $formulae.
Excel Example 1
In column A I have a list of order numbers. In columns B-F I have the different products and the number of orders each have placed for the product. How do I make it so that when I type in the order value into I1, it will return all cells with values into the cells below?
I believe it is an array that i need but not positive. This is just an example, I am trying to do this on a larger scale.
Try to use this formula, it should help or at least give you an idea.
=INDEX($B$2:$F$6,MATCH($I$1,$A$2:$A$6,0),MATCH($I2,$B$1:$F$1,0))
OK, it will be like this:
In I2 your formula is
=INDEX($A$1:$F$1,1,MATCH(TRUE,ISNUMBER(INDIRECT("A"&MATCH(I1,A:A,0)&":F"&MATCH(I1,A:A,0))),0))
In I3 your formula is
=INDEX($A$1:$F$1,1,MATCH(TRUE,ISNUMBER(INDIRECT("A"&MATCH(I1,A:A,0)&":F"&MATCH(I1,A:A,0)))*(A1:F1<>I2),0))
In I4 your formula should be
=INDEX($A$1:$F$1,1,MATCH(TRUE,ISNUMBER(INDIRECT("A"&MATCH(I1,A:A,0)&":F"&MATCH(I1,A:A,0)))*(A1:F1<>I2)*(A1:F1<>I3),0))
And there it goes...
For each cell below you will need to repeat the multiplication "(A1:F1<>Ix)" with every cell above, because it evaluates an array which will compare to the others and return the next true result that isn't any of the colors above neither is a color without value.
Every of those formulas are array formula (confirm them with ctrl+shift+enter). You probably know how to get the values in J, but just in case, it's:
=INDEX($A$1:$F$7,MATCH($I$1,A:A,0),MATCH($I2,$A$1:$F$1,0))
PS: my Excel is in portuguese so my arguments separator is ";", I did change them for "," here in this comment. Just in case the formula doesn't work for you, try to look for some ";" I may have missed, also pay some attention to the $$ because I didn't lock the I1 reference properly, still I hope this can help you.
Thanks everyone for your answers. I ended up going with a vlookup then set a quick macro to run auto-filtering based off conditional formatting. It was the cleanest way i could find to work with the large amount of data I had.
As in title, I'm trying to compare two lists and when a formula hits the match I want it to type the text, but from the cell right next to the found matching cell.
For example: A list of 5343 positions B1:B5343 has corresponding reference numbers in A column (A1:A5343). F1 has a certain number. G1 ought to show the reference number, not the match itself.
I've tried to work with this formula:
=IF(ISERROR(MATCH(F1;$B$1:$B$5343;0));"";A1)
Where A1 should be the reference cell. Not fluent in Excel enough to know
is there a way to refer to a formula result?
is it possible to refer to a cell next to the cell of interest (or few away)? ex.(B-1)54=A54
Not sure how can I clarify the problem more than that :) Help me out please!
Eager to read Your answers! Cheers!
This is a typical case for Vlookup
i would probably go for a index match on this, so INDEX(C:C,MATCH(F1,B:B,0),1)
the index part will go get the cell next to it you want, just replace C:C with the column its in
If its not a match use iferror, rather than iserror as well, Its better practice.
SO : IFERROR( INDEX(C:C,MATCH(F1,B:B,0),1) ,"NO MATCH)
Heres a tutorial
I am having a lot of difficulty trying to come up with a way to 'parse' and 'order' my excel spreadsheet. What I essentially need to do is get the last non empty cell from every row and cut / paste it a new column.
I was wondering if there is an easy way to do this?
I appreciate any advice. Many thanks in advance!
Are your values numeric or text (or possibly both)?
For numbers get last value with this formula in Z2
=LOOKUP(9.99E+307,A2:Y2)
or for text....
=LOOKUP("zzz",A2:Y2)
or for either...
=LOOKUP(2,1/(A2:Y2<>""),A2:Y2)
all the formulas work whether you have blanks in the data or not......
Okay, from what you've given if I understood correctly, you can use this formula in cell J1 and drag it down for the other rows below this cell:
=INDEX(A1:I1,1,COUNTA(A1:I1))
This assumes that the 'longest row' goes up to the column I.
You can also use OFFSET. You don't need to specify an ending column, you can just reference the entire row.
=OFFSET(1:1,0,COUNTA(1:1)-1,1,1)