Quantity*price Returns An Error

Jul 15, 2008

I am using MS Query to join 3 worksheets together.

I need to calculate one field but it keeps returning an error.
the 2 fields are part of the same table calle "Trades"

The fields are : Quantity and USD Price

USD Price is calculated initially in the worksheet using the current exchange rate.
I can display each fields separately (no problem) but when I try to multply the 2: I get a syntax error.

Things i have tried:
I tried to multiply Quantity by 2 and it works. when I try to multiply USD Price by 2 I get the syntax error.

I also tried to copy the values (not the formula) into a new column called USD Price2 and:
- Quantity*USD Price2 : syntax error
- USD Price2*2: Syntax error

View 9 Replies


ADVERTISEMENT

Calculate Price Based On Quantity

Apr 21, 2009

I`m relatively inexperienced with Excel, searched for a few days and have not been able to figure out how to calcuate this value. I have multiple worksheets to work out financials. I have a separate worksheet with the pricing breakdown based on volume. 2 columns

0 - 99,999 0.05
100,000 - 499,999 0.04
500,000 - 999,999 0.03
1,000,000+ 0.03

On a separate worksheet I want to add I6+I7, depending on the value multiply it by the value in the second column. So if the total is 520,000 then multiply it by 0.03.

View 5 Replies View Related

Cost Price Vs Quantity Discount

Apr 7, 2008

I'm trying to work out how to get a spreadsheet to calculate when it works out cheaper to buy more of something, due to quantity price breaks, than less... e.g. 1-10 are £12.50 each, but 10-20 are £10 each and 20-30 are £8.75 each.. so it's as cheap to buy 10 (10x10=100) as it is 8 (8x12.50=100) and cheaper to but 10 (100) than it is to buy 9 (112.50) than 10... but there are similar price breaks at 20, 50 +

View 9 Replies View Related

Sum Quantity And Price Across Sheet Based On Items

Jun 18, 2013

I have an issue when I use the sumproduct formula, it only sum the quantity and price orderly which is not matched

I have attache the file for example : Sale monthly.xlsx

View 9 Replies View Related

Sum Up The Totals Of 'quantity X Unit Price' For Each Product

Nov 23, 2009

i am currently working on cost analysis of large projects.

I have a worksheet with about 100 headings and i would like to sum up the totals of 'quantity x unit price' for each product.

I tried the sumproduct function but it did not work and i had to do the '=sum(b4*c4,d4*e4,f4*g4,..........) to get the result in the total column. I attach a small sample of the file.

View 9 Replies View Related

Get And Average Price For Total Quantity Of Jacks?

Nov 23, 2013

I am trying to get and average price for a total quantity of jacks

Material Price row G cells 4 - 56
Material Labor Price row I cells 4 - 56
Jack Quantity row L cells 4 - 9

I had this =SUM(G4:56)+SUM(I4:56)/SUM(L4:9) just wont work?

View 5 Replies View Related

Lookup Price Per Unit Based On Quantity Sold

Nov 22, 2007

I can't seem to get my head around this one. I have a list of ranges of prices for different materials depending on the quantity bought. I want a formula that returns the correct price depending on the quantity required.

Please see attached workbook. My desired results are in column S. I can't stop thinking that a nested IF statement is the solution so I was hoping for a fresh pair of eyes on it.

View 7 Replies View Related

Calculate Grand Total From Multiple Rows Of Quantity And Price / Unit

Jul 18, 2014

For this ordering tool, I would like to calculate and present the grand total, starting from a fixed range of two columns (each 10 rows), where one has quantities, and the other has the price/unit. Since I'm not allowed to change the layout of the ordering sheet (we still fax orders...), I can not add a column for the subtotals. Also, not all rows are filled necessarily.

I had some success with this as a worksheet function: =IF(ISERROR(H30*I30);0;H30*I30)+..., but I would really like to have it as a part of a big VBA function, since colleages might alter/delete the worksheet formula.

I looked and messed around with For loops, but I can't make it work.

View 1 Replies View Related

Merged Cells: Format The Cell So That If There Isn't Two Lines Of Type In The Description It Remains Aligned With The Quantity And Price

Apr 22, 2006

I've attached part of the file I'm working with, and can't figure out how to align the text to the top in the merged cells titled description. How do I format the cell so that if there isn't two lines of type in the description it remains aligned with the quantity and price

View 2 Replies View Related

Existing UDF For Returns Correlation (inputting Price)

Jul 18, 2013

Any existing UDF that will take two ranges of Prices (for stocks) but get their respective returns to then get the correlation of that?

View 4 Replies View Related

Discount Prices Based On Order Quantity And Package Quantity

Nov 23, 2009

I have two idential spreadsheets with several rows of items each with different packaging quantities, price break quantities and corrisponding prices next to each break quantity. I'm trying to build a discounting sheet on an idential page by using formulas that read off the price sell in the same relative position on sheet 2. Below is one row of sheet1 and the idential row of sheet2 - underneath the cells are the rules I would like incorporate:

Sheet 1
ABCDEFG
1Pack QtyQty 1Prc 1Qty 2Prc 2Qty 3Prc 3
210010.91000.744000.6

Sheet 2
ABCDEFG
1Pack QtyQty 1Prc 1Qty 2Prc 2Qty 3Prc 3
210010.91000.744000.6...........................

View 5 Replies View Related

Code That Only Returns A #NAME Error

Jul 31, 2008

I have this code that only returns a #NAME? error. I'd love it if someone could take a look and let me know what you think might be going on. If it factors into it, D1:D4 each contain one of the following: USD, AUD, GBP, MX and E1:E4 contain the corresponding exchange rate. Also, J7:AJ41 contain a function that returns a number. Let me know if you need more information. I just can't figure why this is not working.

Sub newtabs()

Dim x As Range
Dim Curr As String
Dim Rate As Double

For Each x In Sheets("Cash Flow Detail - WkCount").Range("D1:D4")
Curr = x.Value
Rate = x.Offset(0, 1).Value
Sheets("Cash Flow Detail - WkCount").Select
Sheets("Cash Flow Detail - WkCount").Copy After:=Sheets(2)
Sheets("Cash Flow Detail - WkCount (2)").Name = Curr
Cells(7, 10).Select
ActiveCell.FormulaR1C1 = "=IF(activecell.offset(RC7)=" & Curr & ",('Cash Flow Detail - WkCount'!RC*" & Rate & "),0)"
Selection.Copy
ActiveCell.Range("a1:aa35").Select
ActiveSheet.Paste
Next
End Sub

View 9 Replies View Related

VLOOKUP Returns #N/A! Error

Oct 28, 2006

I have a sheet that uses vlookup when the lookup returns #na error how can i conditional format these cells to so text is same as background

View 9 Replies View Related

Find Returns #VALUE! Error

Nov 12, 2006

My formula =IF(OR( FIND("Bugs",E2),FIND("Daffy",E2)),"/wkly",0). Always returns #VALUE! error. I can understand if neither value occurs in the string, what confounds me is if one of the two does occur in the string If I shorten to

=IF(FIND("Bugs",E2),"/wkly",0)

Then the expected output is returned

View 2 Replies View Related

SUMPRODUCT Returns N/A Error

Jul 30, 2007

I have sumproduct formula that returns #N/A error and I'm not sure why
=SUMPRODUCT((YTD!$A$2:$A$2599=B$10)*(YTD!$P$2:$P$2599=$Q19)*(YTD!$E$2:$E$2599))

If I narrow the range from $939 to $1093 then the formula works.

But that is only evaluating 1 unit of 10

As I add worksheets to the workbook and update the unit numbers in B10, the entire range needs to be evaluated for matching criteria.

workbook is way too large to upload.

View 9 Replies View Related

Function Returns #NUM! Error

Sep 30, 2007

Is there a way in which you can create an if function or similar to give a reason for why the cell of data has an error.

Basically i have some data in a table, and when a #num! error pops up id like to in the cell next to it give a sentence stating why this has happened.

E.G.

Cell A1 Cell B1
#Num! Number error due to 'x' being too small

Not sure how i can get this to work, i have tried a basic if function but that hasnt worked.

View 4 Replies View Related

SumProduct Formula Returns #VALUE Error

Feb 12, 2009

I'm not sure what I'm doing wrong with this formula in Excel 2003. I figured out how to do it in Excel 2007 using the SUMIFS statement, but alas Excel 2003 won't take a SUMIFS statement.

I have data in a column, J of Worksheet B that I need to add based on 2 conditions. The first conditions are in cells AJ6 to 8 on Worksheet A. The second condition must be matched from Column A of Worksheet B to the same condition in Column F on Worksheet A.

View 7 Replies View Related

IF Statement Returns Either Value Error Or False

Jan 7, 2010

if Statement A: =IF(M4>$B$17,0,LOOKUP(M4,$AA$20:$AB$29)*$B$15/12) works very well

if Statement B: =IF(M4>$B$17,0,LOOKUP(M4,$AA$36:$AB$44)*$B$15/12) works well too

now I am trying to say

=IF('Input Page'!B36="yes",(IF(M4>$B$17,0,LOOKUP(M4,$AA$36:$AB$44)*$B$15/12),(IF(M4>$B$17,0,LOOKUP(M4,$AA$20:$AB$29)*$B$15/12))))

Basically, if B36 is yes, use If Statement B, otherwise IF Statement A. If I write Yes, I get a "Value" error, if I change the yes to 1, I get a FALSE error.

View 2 Replies View Related

Formula Returns Div/0 Error Intermittently

Jan 10, 2007

I'm using the formula below to count the distinct number of values in the range, many values are repeated so this formula only counts each one once, it works sometimes. For some reason I get a #Div/0 error once in a while.

The entire range might not always have a value, when I get the error if I add text to the remaining cells of the range the error is cleared.

I do not want to use a If (iserr(myformula),0,myformula)) because there are still values that need to be counted even if the range is not totally populated.

=SUMPRODUCT((B16:B1500"")/COUNTIF(B16:B1500,B16:B1500&""))

View 9 Replies View Related

Activesheet Returns Runtime Error 91

Jan 23, 2007

Private Sub Workbook_Open()
'Application. ScreenUpdating = False ' Turns off screen updating
Dim Filename As String
Dim nFam As Integer
Dim cRow As Integer
Dim i As Integer
ws As Worksheet

Filename = "O:BVRMusers_sharedJCIntraday ToolFamily List.xls"
Workbooks.Open Filename 'Opens Family List

'Count the number of rows (Families) in Filename (Family List)
Set ws = ActiveSheet
With ws
. Cells(1, 1).Select
cRow = .UsedRange.Rows.Count
End With
End Sub

i cannot get ws to be set as the ActiveSheet. i receive a run time error 91 each time and cannot figure out what is wrong. i've used this code before under subform functions, but this is the first time i've placed it in the "ThisWorkbook" area.

View 2 Replies View Related

Sumproduct Formula Returns #VALUE! Error

Jan 27, 2007

I'm trying to sum cells in a column that meet the following criteria: If the first character of the cell = "V" then sum the last two characters in the same cell. I.e., if A4 = "V12" and A6 = "V10", then I need the formula to return the total 22. All other cells, whether blank or starting with a different letter need to be ignored. My attempts have failed, including this last one that returns a #VALUE error.
=SUMPRODUCT(LEFT(A1:A10,1)="V")*(MID(A1:A10,2,2))

View 7 Replies View Related

UDF Returns #Value! Error After Opening Another Workbook

Dec 18, 2007

Having a problem with a simple udf to calculate values across multiple sheets using the calling cell as a reference point. It works great until you open another workbook and then switch back. At that point all cells calling this udf return a #value! error. If I type anywhere on the sheet all of the values will recalculate but this is less than ideal for the end users here. below is example of concept

Function TestMe()
Application.Volatile (True)
Dim strCallAddress As String
Dim intSubTotal As Integer
strCallAddress = Application.Caller.Address
intSubTotal = Worksheets(2).Range(strCallAddress).Value
intSubTotal = intSubTotal + Worksheets(3).Range(strCallAddress).Value
TestMe = intSubtotal
End Function

View 4 Replies View Related

Excel 2010 :: Multiplying Price By Variable Number Of Years And Annual Compounding Interest To Price

Sep 5, 2012

I need J22 to multiply based on years in B22 AND increase 5% for each of those years (compounding) after two years (excludes year 1 from 5% increase). In addition the cell needs to remain blank if D22 is blank. B22 = 1, then the stockprice needs to remain the same, and only increase by 5% after year 1.

Currently...
B22 = a number of years indicated by the formula: =IF(A22="","",DATEDIF(A22,I3,"y"))
J22 =IF(ISNA(VLOOKUP(D22,stockprices,2,FALSE)),"",VLOOKUP(D22,stockprices,2,FALSE))

Example:

If J22 stockprice lookup is $1000.00, and the number of years listed in B22 is 6, then the reported value in J22 needs to be $1494.40.

Windows 7 Ultimate / Excel 2010

View 1 Replies View Related

Calculate The Implied Volatility Which Minimizes The Sum Of Squared Differences Between The Observed Market Price And The Model Price For Each Day

Jun 9, 2008

I have calculated the implied volatility for different single options using the newton raphson method. But, I also need to calculate the implied volatility which minimizes the sum of squared differences between the observed market price and the model price for each day. I guess one needs to use vectors (jacobian matrix) to do this, but I do not know how to expand the code to be able to do this. Anyone have any idea how this can be done? I have attached the [code] I have used to calculate the implied volatility for one option.

View 2 Replies View Related

MAX Of Three Different Values In Three Different Column Returns Formula Error

Jan 30, 2013

I have three different values in three different columns and I want to find the maximum amongst the 3 values.

A1 B1 C1
100 50 40

in D1 I have written a formula
=MAX(A1, B1, C1)

But it is returning an error saying formula you typed contains an error

View 9 Replies View Related

Vlookup Returns Error For Blank Cells In Gradebook

Jul 15, 2006

I've managed to set up a gradebook.

However, is there a way that I can get Vlookup not to return N/A when I have a blank cell on the report (not in the data table). I want to be able to calculate the progressive grade average of a stduent as the year progrsses.

View 9 Replies View Related

SUMPRODUCT Formula Returns #VALUE! Error Opening Workbook

Sep 26, 2006

whats happening to my workbook. On a worksheet called Data, i'm pulling in a lot og data from a database. Then on another worksheet i'm looking for certain things on the data sheet and counting how many there are.

This all goes along find until i close the workbook, and then re-open.I click the automatically update button that appearsand once it finishs updating all my values are replaced with #Value.

This is the formula i'm using.

= SUMPRODUCT(--(Data!$X$1:$X$49871="4")+(Data!$X$1:$X$49871=4),--(Data!$M$1:$M$49873="FTS-Unix"))

View 6 Replies View Related

Lookup Referencing Closed File Returns Value Error

Aug 13, 2008

I have a file created in Excel 2003 that uses a vlookup to reference another file, also created in Excel 2003. The function returns VALUE when the referenced file is closed. I get the VALUE error whether or not I update links upon opening the file. If I open the source file, the function calculates properly.

Here is the formula when the referenced file is open:

=VLOOKUP(A38,'[June Scorecard confirmation.xls]VPSC Summary'!$C$10:$F$22,4,FALSE)

The full & correct path appears in the formula when the referenced file is closed.

Columns C, D & E in the referenced range contain text, column F contains a Sum. This file is linked to another file, also using lookups. The linked area in this file works without problem, but it is a precedent to the calculation in column F.

Both these files reside on a network in subdirectories of the same logical drive. I am using a laptop that briefly had Excel 2007 installed on it, but was wiped clean before it was issued to me.

View 3 Replies View Related

Find Function In Calculated Column In PowerPivot Always Returns Error?

Aug 2, 2014

I have created a calculated column in PowerPivot and inserted a formula that worked in a normal excel spreadsheet however, this formula does not work in PP anymore.

=find("green",Table1[Name],1)

Name column:
NAME: Bag green

it should find "green" in the name and return the position. Hoever it alway returns the error, that the find function could not find the string.I have attached an example spreadsheet.

View 1 Replies View Related

Lookups For An Item's Price From A Price List

Jan 4, 2010

The analysis basically has 2 data components to it:
The 1st part, is a basic transaction list of shopping items bought through the year. Each transaction's shopping item also has the quantity of that item purchased at that time.

The 2nd part, is a pricing sheet for all the different types of shopping items. The pricing sheet has different prices for different quantities at which the item is purchased.

What I am trying to do is to find the relevant price for shopping item, which depends on not only what the item is, but also the quantity. In point form, it should follow the logic below:

1) Identify the item in the shopping list (worksheet 1) from the list of prices (worksheet 2)

2) Find quantity in the prices worksheet that is closest to the quantity in the shopping list (i.e. where the difference between the quantity on transaction list and the quantity on the pricing sheet is the least)

3) Pull the price for this "closest quantity"

I have uploaded a worksheet showing the structure of that data.
[url]

Is there some VB code I need to do this, or can it just be a few simple formulas?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved