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
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.
I have tried 2 approaches to my problem and can't quite figure out where I'm going wrong.
=AVERAGEIFS(CALC!L:L,CALC!C:C,Consignee!A2,CALC!K:K,CALC!A:A) and =IF(AND(Consignee!A2=CALC!C:C,CALC!K:K=CALC!A:A),AVERAGE(CALC!L:L),0)
Basically I need to start with CONSIGNEE!A2, then find it's match in CALC!C:C, which I then need to check against CALC!A:A to find the ones that go with it in the same row and see if that/those cell(s) match any in CALC!K:K and then take the average of the corresponding values in CALC!L:L and average them. I hope that makes sense. I feel like I've gotten close but am missing something.
Thank you in advance for your help!
I suspect that the formula below may not be the most efficient possible but it will do the job.
=SUMPRODUCT((CALC!A:A=CALC!K:K)*(CALC!C:C=CONSIGNEE!A2),CALC!L:L)/SUMPRODUCT((CALC!A:A=CALC!K:K)*(CALC!C:C=CONSIGNEE!A2))
Edit
In my original answer a reference to L1 was erroneously left over from the formula I tested where I had L1 taking the place of CONSIGNEE!A2. I have corrected this error and believe that the formula works fine for your requirement now.
Note that there are two separate SUMPRODUCT functions which you can test each by itself, one returning the count, the other the sum. If the count = 0 a #DIV/0 error will occur. You can prevent that by embedding the formula in and IFERROR() function.
I have a issue with this formula and i was looking everywhere, but i was not able to figure it out. What i want to do with this formula is after the code is changed i need to know, how many unique models was used for this changed code
Formula is working only without $A$2:$A$25000;F2 that means, i'm not able to say how many unique models i have for one code, but it's for all of them
Do you have any suggestions ? Thank you !
=SUMPRODUCT(IF(($C$2:$C$25000E2);1/COUNTIFS($A$2:$A$25000;F2;$C$2:$C$25000;"<="&E2+30; $C$2:$C$25000; ">"&E2;$B$2:$B$25000;$B$2:$B$25000&"");0))
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.
I need to collate the total numbers for each type of document that students send to me:
Example document:
For example, for "PK" (in the second table,) I need to calculate the total number of "Journal," "Miscellaneous Review," and so on. Is there any formula that will help me do this?
Edit:
Sample doc 2
This seems to be a very easy SUMIFS problem.
Using your sheet, the code should be:
=SUMIFS($C:$C,$B:$B,N$2,$D:$D,$M3)
Just copy and paste for all the cells you need.
For future reference, you should really show any efforts you have tried previously