Netsuite Saved Transaction Search formula error - netsuite

I'm trying to get the value counting the number of Sales Orders and multiplying it by the credit limit it has but it returns an error.
I've Grouped by Name and I have a SUM before this:
COUNT({tranid})*{customermain.creditlimit}
I get to "An unexpected has occurred" screen and can't even access the results

Probably this:
COUNT({tranid})* nvl({customermain.creditlimit},0)
Also including an aggregate function inside a summarized column changes how Netsuite handles the summary.
if the above doesn't fix your issue then try making the column's summary function Average and change your formula to:
SUM(COUNT({tranid})* nvl({customermain.creditlimit},0))

Related

ordering a list of names based upon related values, accounting for duplicate values, excel

I have a sheet that pulls metrics regarding employees from an internal source, I am trying to create an end of day report card and would like to display the names in ranking order based upon the metrics.
a small example for demonstration:
Columns A and B: An example of the kind of data in my sheet.
column D: I have used a variation of
=INDEX(A$2:A$6,MATCH(E2,B$2:B$6,0))
Column E:
=LARGE(B$2:B$6,1)
as you can see I am running into trouble with duplicate 'total' values creating an incorrect index number causing the first name that matches to be the result.
column G i have attempted to get around this by using:
=INDEX(A$16:A$20,MATCH(E19,B$16:B$20,0)+COUNTIF(B$16:B$20,E19)-1)
to attempt to account for the duplicates by adding a countif to the index number, of course, is an incorrect approach.
Not shown I also tried adding 0.5/'employee id number' to the total (0.5/an integer gives me a decimal between 0 and 0.5 allowing me to have each number be unique without causing any rounding problems to the displayed total. However, I think the decimal was ignored by the MATCH and it made no effect.
A weird problem has had me puzzled and I appreciate any help!
Have you tried something like this
=INDEX($A$2:$A$6,AGGREGATE(15,6,(ROW($A$2:$A$6)-ROW($A$2)+1)/($E2=$B$2:$B$6),COUNTIF($E$2:E2,E2)))
=INDEX($A$9:$A$13,AGGREGATE(15,6,(ROW($A$9:$A$13)-ROW($A$9)+1)/($E9=$B$9:$B$13),COUNTIF($E$9:E9,E9)))
=INDEX($A$16:$A$20,AGGREGATE(15,6,(ROW($A$16:$A$20)-ROW($A$16)+1)/($E16=$B$16:$B$20),COUNTIF($E$16:E16,E16)))

Using VLOOKUP to match a user ID to a supervisor

As you could probably already guess, I am working on a report summary that displays the amount of time each agent has spent in different statuses such as 'Available', 'Unavailable', 'In a meeting', etc. that can easily be modified and doesn't rely on specific criteria, just the table rows & columns. For example, if someone was to switch teams or get a new supervisor, the data would be updated automatically when replacing the supervisor name.
The issue that I am having is when I try to use a VLOOKUP in my 'Report' sheet to match an agent's User ID to their supervisor in the 'Agent List' sheet, I am getting #N/A as my result.
This is the function that I have tried:
=VLOOKUP('Agent List'!C2, 'Agent List'!A:D, 4, FALSE)
As far as I know, I have met all the required arguments by stating where the data is stored by using 'Agent List'!, the look up value, the table array, which column to match it to, and whether I want an exact match or approximate match.
I have played around with the function for a while, and have looked at others posts, but was unable to resolve the issue on my own. Any help I can get with this would be great. Any suggestions on a better idea to achieve the same result are also welcome.
Thanks,
TNA
Agent List table example:
#N/A in a vlookup sense usually means the value was no found.
This is due the the data not being in the first column of reference.
Also are you trying to lookup the data from one sheet to another? The value you are looking up should be the first value in the formula. You appear to be looking up from the same table you are returning result from.
Instead you can try:
=VLOOKUP(OTHERSHEET C2, 'Agent List'!C:D, 2, FALSE)
OR
=INDEX('Agent List'!D:D,MATCH(C2,'Agent List'!C:C, 0),1)

NetSuite Saved Search Calculate Date Difference Between Two Related Records

I'm trying to calculate the difference in days between an Invoice Date and the Date it was emailed out on a Saved Search.
I have a saved search created where I can see both the Invoice date (trandate) as well as the email date (messages.messagedate) but when I try to put this into a formula I keep getting a "field not found error".
I'm new to NetSuite and I also don't know a lot of SQL so I'm sure it's something basic I'm missing but here's what I have tried:
Formula (Date): TRUNC({messages.messageDate}-{transaction.tranDate}) || ' days '
Formula (Numeric): ROUND({message.messageddate}-{transaction.trandate})
I've tried "messages." and "message." and I've tried transaction. and without "transaction.".
I think I'm just missing the exact structure I need to use to reference the fields on two separate but connected records.
Please assist!
Please use Formula numeric and try with this formula
ABS(TO_DATE({messages.messagedate})-TO_DATE({trandate}))

Index with double Match returns incorrect closest values

I have an planning exported to Excel which looks like the following (tab ' Data'):
Each production line has a number of people working on it. Now is my goal to show how many people are working on a line per minute. We plan per product group, and several product groups combined form waht a line has to do per minute.
To get the production per minute I created the following (tab 'Conversie'):
=INDEX(Data!$H$2:$H$157;MATCH($N$1&A4;Data!$B$2:$B$157&Data!$C$2:$C$157;1))
In the example it works correct. However, the formula doesn't seem to always return the correct "Artikelomschrijving"(H) every time. I get incorrect return values when I extend this formula to other product groups.
I read that the data needs to be sorted ascending cause I use match_type 1. When I do that I get the right returns for some product groups, but the given example suddenly returns incorrect values.
I can't sort both column C and A in ascending order for the formulas to always return correct items. Can you help me to get past this hurdle?
After a little bit of google translate work, if I'm understanding your question correctly, you need to find the "Item Description" (H) of the record where the "Line" (B) = the value in N1 and the time is between the start and end times.
This is an array formula, you have to confirm it with Ctrl+Shift+Enter
=INDEX(Data!$H$2:$H$157,MATCH(1,(Data!$B$2:$B$157=$N$1)*(Data!$C$2:$C$157<$A2)*(Data!$D$2:$D$157>=$A2),0))
OR with semicolon syntax:
=INDEX(Data!$H$2:$H$157;MATCH(1;(Data!$B$2:$B$157=$N$1)*(Data!$C$2:$C$157<$A2)*(Data!$D$2:$D$157>=$A2);0))
I found the solution, thank you for pointing me in the right direction Valon Miller. This is the formula I fixed it with:
=ALS.FOUT(INDEX(Data!$H$2:$H$154;MATCH(1;(Conversie!L$1=Data!$B$2:$B$154)*((Conversie!$A32>=Data!$C$2:$C$154)*(Conversie!$A32<=Data!$D$2:$D$154));0));"")

In Excel, how can i break ties when ranking students' tests?

I'm doing like a bit of a competition for my students in which they have a weekly test they have to complete and submit. The grade is stored in an excel column next to their names.
Following instructions i found, i was able to create a full working general TOP3 with the Average of the tests' grade and when i get to the TOP5 for the grades of the last submitted test, i get a three-way tie.
I use the LARGE function to find the top grades and the combination of the INDEX and MATCH functions to find and display the name associated to that mark.
(Something like this =INDEX($A$1:$A$29;MATCH(M12;$F$1:$F$29;0))
The problem is that the function compares the grade on it's left to find that value in the range of grades and then returns the corresponding name associated to that row; so, it returns the same name for the three grades.
I tried using an IF function to exclude the first-result-cell from the array in which the formula is looking so that when it finds a match it will be different from the previous one, but i have not manage to work it out...
You need to use a pivot table and filter the results to the top 3. A pivot table will display the ties.
Here is a link that #Jeeped gave which basically solves the problem!
Thank you all for commenting!
Multiple Ranked Returns from INDEX(…) with Duplicate Values:
http://tinyurl.com/naavhgf

Resources