I'm using following formula to extract the records from the database in excel.
{=IFERROR(INDEX(A$2:A$11,SMALL(IF($A$2:$A$11=$C$1,ROW($A$2:$A$11)-ROW($A$2)+1),ROWS(E$2:E2))),"")}
I got this formula idea from the following YouTube tutorial,
https://www.youtube.com/watch?v=6jcqN3swdW8
Now my question is I want to understand the part of the Formula.
here is that,
"IF($A$2:$A$11=$C$1"
How did the above part work with excel formula? I have tried to use this part individually to return the boolean value from the table but it gives the wrong result every time.
anyone can clear my concept?
this is turned out to be a very easy concept. Thank you to #TomJohnRiddle for his comment.
I have started learning Advance Excel from VBA. I used to apply VBA literally for every little data processing. Maybe that's why I have never interacted with Excel's Array Formulas. but it's all cleared now
here is the link as Tom has suggested.
https://support.office.com/en-us/article/guidelines-and-examples-of-array-formulas-7d94a64e-3ff3-4686-9372-ecfd5caa57c7
Thank you.
Related
Using excel 365. I have used this same formula for "asset allocations" and it worked perfectly.
I decided to do the same for sector allocation and I can not figure out what is wrong. This has beat me down. I have tried for 2 days. I thought that I could just exchange the category for sector. Didn't work. Thank you for any help.
Here is the image which shows the sheet that I am using.
The formula in G6 is:
=SUMPRODUCT(SUMIFS(INDIRECT(K$6:K$11&"[Value]"),INDIRECT(K$6:K$11&"[Sectors]"),[#Sector]))
You can see a REF Error on the column "Value".
This image is to show where the "Sectors" are listed on the individual sheets that I wish to sum.
Unusual, but this is working fine in my test scenario.
Use the Evaluate Formula tool to see where the error creeps in. You may have a typo in the list of tables.
I should have found the answer earlier but I didn't question my table columns.
In my last table the Column was accidentally called "Sector" and it should have been called "Sectors". I needed to pinpoint the point of problem by debugging better.
This code does indeed work fine for anyone wishing to sum by a category from more than one sheet. Not saying it is elegant code but it is easy to understand.
could anyone please tell me if they see something wrong with this code? I've been staring at it for hours and I still can't see anything wrong with it but I can't drag it across the cells or even reword it to work for the others it is only working for the first column(Yr3).Any help at all with getting my head around this would be sooo much appreciated!
=IF($B$26="Thousands",VLOOKUP($B29,Assumptions!$C$4:$K$23,MATCH(C$26,Assumptions!$C$4:$K$4),FALSE)/K,VLOOKUP($B29,Assumptions!$C$4:$K$23,MATCH(C$26,Assumptions!$C$4:$K$4),FALSE)/M)
This is the part where I am trying to extract the data from
This is the code I am using
And this is where I want to PUT the information. The highlighted cell is the one that seems to work but doesn't work going across at all which is my problem
I am a teacher at a University. I am trying to make an attendance in excel for one semester.
I have almost finished but I have hit a problem that I can't find the answer to. I am trying to create a student lookup. Please see picture.
So I thought I would use vlookup taking it from the running total from my students list. However that total is a formula not a value number. I got that total by formula: to add each months total together and place the result there. I can't seem to get vlookup to return a formula just a vault number. The problem is as the semester ins't over that total keeps changing every lesson. So I need vlookup to work with that running total. I have looked for many hours on the net as I thought somebody must have a similae problem but I cant either not find or understand them. If you need the excel file for better understanding I would be happy to share it with you. Thanks in advance
The formula being returned is actually a text string that looks like a formula. You need some workaround to evaluate that formula.
Please share the worksheet so I can understand it better.
Meanwhile this link should be useful for you.
https://www.excelforum.com/excel-formulas-and-functions/1104076-can-you-use-vlookup-to-return-a-formula-instead-of-a-value.html
Good afternoon,
I am trying to use a VLOOKUP formula across different sheets, but so
far I am unsucessful.
The formula I am using is the one below:
VLOOKUP(R9;INDIRECT("'"&INDEX(ListaFolhas;MATCH(1;--(COUNTIF(INDIRECT("'"&ListaFolhas&"'!$C$4:$D$4");R9)>0);0))&"'!$C$4:$D$4");2;FALSE)
ListaFolhas is the name of the range of the names from the different
sheets.
Basically I need to insert the number associated with each person:
What can I be doing wrong? I used this formula from a page and adapted
to my own case...
EDIT:
After some research I figured out an answer. However, I am facing a new problem: The formula I found only considers one word, doesn't consider 2+ words. A screenshot of the situation:
In the image I have the formula I am using and the difference I get. Could anyone help me please? Thanks in advance!
=INDEX(range of cells with the numbers, MATCH(name you are looking for,ListaFolhas, 0))
I'm trying to achieve something like in the picture attached. I could able to achieve rest but calculation of Highlighted part. Formula or VBA code is preferred. Here is the image for what I'm trying to achieve.-
I could able to solve it by sumifs method as told by Jeeped.Formula goes Like
=SUMIFS(Sheet1!Column3:Column3,Sheet1!Column1:Column1,Sheet2!Column2-row1value,,Sheet1!Column2:Column2,Sheet2!Column1-row2value)
Thanks Guys