netsuite saved search difference between two columns - netsuite

I am writing a saved search that shows SKU then monthly qty and $ value. i want to add a 3rd column that shows the difference in value between 1month ago and 2 months ago.
below is the formula however the result adds the two columns together rather than subtracts can anyone helps with what i am missing here.
Formula

Related

Returning a particular value for first occurence over multiple rows

I have all my customers in column a and their orders stretching across columns to AB. The months are the columns. I am using the formula:
=INDEX(B177:AG177,(MATCH(TRUE,INDEX((B177:AG177<>0),0,0),0)))
This gives me the amount of their first order but I want it to return the value for the corresponding column and row 1 of the occurence so I can get the month and the year instead of the dollar amount.
Doing this will allow me to count how many new customers started each month. I've scoured the internet but can't find anything that works for me. I appreciate the help.

Guide me Regarding Compare the Value of Cell contain date and other cell contain Drop down list

Hy Every One, I need help in excel formula, I have two sheets, sheet1 for sale tracker, sheet two for goals tracker, I used Now() to enter date automatically, and its working fine, Next in goal sheet, I use =Sumif() to calcualte various category totals and refer them in cell. Its also working fine. But I want to track record according to month and category. Like I have 6 categories detail is as under,
Sales Tracker
In the First picture Column Date consist of formula "=IF(ISBLANK(B5),"-",TODAY())" and it display the name of month like "October"
While in second picture there is a drop down list of "Month" Column.
1- I want to use if statement like =if(Date=Month, Sum(Revenue Secure column Data), "-") But its not working the formula I wrote here is an example....
2- I want when I select any month from second sheet like January, February, It should calculate sum from picutre one data and only show the sum of january etc.
Please help me, this is eating my brain a huge,,,,,,:)
Thanks in advance....
In short my question is how can I use If statement to compare value of cell that contain formula and other that contain drop down list?
Or use the MONTH function to change your date to a number 1 to 12 corresponding to the month. Then have the combo return a number for the month chosen. It might be faster using integers than test
I Believe you have to compare the month and not the whole date.
You can do TEXT(NOW();"mmmm") to get the full month name of the current data (in the language of excel) and then compare it to your drop down.
If you replace the NOW() with any data it works as well.

Excel: Trying to count cells based on date, can't figure out SumIf

hopefully you can help me with this. I've been trying to figure it out in Excel myself, but I can't make the functions work and it's causing me to manually count the cells.
I've created a sample sheet on Google to show roughly what I'm trying to do;
https://docs.google.com/spreadsheets/d/18bFBvtbK-3JDj6Z6_b6NHttaytApNvdfw92ZcI4ECws/edit#gid=0
I have a series of tests my personnel have to take annually, and I want to write a function that displays the total number of tests taken within the past year. Cell B1 would be the column title, B2-4 would display the date the test was taken, and B5 is where I want the number of dates in B2-B4 that are less than one year old.
Any ideas?
If you want less than a year old from todays date then just count all values that are greater than 365 days ago,
=COUNTIF(B2:B4, ">"&(TODAY()-365))

Excel comparing 2 workbooks, combining them and then comparing

I want to compare two price lists for different years from a supplier.
I have multiple items (thousands) with multiple different size codes for each and then prices for each item for each size.
I want to combine the two price lists, (I have 1 'Cost' column in Euros and 1 in Sterling 'Our Price' with delivery included for each period). Some items (or particular sizes) are unique to either list. The items which appear in each list I want to compare the prices of (then work out +/- of change, which I'll work into %'s). But I'm falling at the first hurdle!
How do I create a third sheet from the first 2 sheets (I've got both documents as different sheets within the same workbook) with a combined list, showing the prices for one year in one column and the prices for the second year in the next... Obviously items appearing in 1 year I want to only have 1 price for and a blank for the other!
Example of the data.
This is the formula I'm using at the moment =LOOKUP(A2,'2010'!A$2:A$7940,'2010'!B$2:B$7940)
Which is almost working.
For some reason Excel is looking through the other sheet and not finding all the exact matches to the source... Some it does, most it doesn't and it is then taking an average of similar matches?!
LOOKUP only works when the values in the lookup area are sorted in ascending order. You will be better off with using VLOOKUP and setting the last parameter to false:
=VLOOKUP(A2,'2010'!A$2:B$7940,2,false)

Excel - Create dynamic sum formula range

I am currently using the following formula
=SUM(INDIRECT("'Net "&($A$2)&" "&RIGHT($A48,2)&"'!C4:C21"))
That works out perfectly, but I'm trying to make the range portion of it (C4:C21) dynamic.
The $A$2 that the formula is referencing is something that someone types in and currently says "May". The $A48 that the formula is referencing is simply pulling the last 2 digits of the year.
These are the pieces of the file
There are a total of 6 tabs that are significant. There are 4 tabs that total up prior years sales for a particular month. So I have Net May 11, Net May 10, Net May 09, Net May 08. These are the tabs that the Indirect formula is finding.
The last 2 tabs includes the one where this formula exist in (Net May 12) and the tab that the range will need to be based off of (Cust May 12). In the Cust May 12 tab Column A is the day, column B the day of the Week, and column C is where we have our sales data. Someone goes in every day and types in the sales for the day. So as an example I currently have sales data from 5/1/2012 until 5/18/2012. Everything from 5/19/2012 - 5/31/2012 in column C is blank. The sales data that currently exist are in C4:C21, with C22:C34 being blank. Because I am comparing prior years sales to this years sales they must be comparable, which is why the formula only uses C4:C21 for all of the prior years sales.
I have tried a few things including a CountA and some offsets to try and help me out, but I have been unable to find a solution to making the range dynamic for all of my prior years sales formulas. I need the formula to simply increment to something like C4:C22 for all of the prior years when someone types in the sales data for the next day in the Cust May 12 tab.
Your question is not completely clear, but it sounds like you want something like:
=SUM(OFFSET(INDIRECT("'Net "&($A$2)&" "&RIGHT($A48,2)&"'!C4:C4"),0,0,COUNTA('Cust May 12'!$C$4:$C$34)))
However, you might want to consider restructuring your data to store it in only one worksheet, say with columns like Year, Month, Day, and Sales. Then, questions like, "What were 2011's month to date sales for May," are easier to answer (particularly with the SUMIFS function added in Excel 2007) like this:
=SUMIFS(<Sales column>,<Year column>,2011,<Month column>,"May",<Date column>,"<="&DAY(NOW()))

Resources