Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA SumIF
Can I just say I am truelly learning Excel is never ending! This project
started rather modest. Ha! Ok- I have a userform it displays an invoice # via cbobox. How do I have a label on the form that looks at that invoice # goes to the producedata worksheeet and does a sumif of the boxes sold. Thank you! -- Though daily learning, I LOVE EXCEL! Jennifer |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA SumIF
Hi Jennifer,
Basic SUMIF in VBA is myVal = Application.sumif(range("A1:A10"),"a",range("b1:b1 0")) Then yoiu just replace tyhe test value for the combo value myVal = Application.sumif(range("A1:A10"),cboInvoice.Value , range("b1:b10")) You then might want to test there are no errors If IsError(myVal) Then MsgBox "error" End If -- HTH Bob Phillips "Jennifer" wrote in message ... Can I just say I am truelly learning Excel is never ending! This project started rather modest. Ha! Ok- I have a userform it displays an invoice # via cbobox. How do I have a label on the form that looks at that invoice # goes to the producedata worksheeet and does a sumif of the boxes sold. Thank you! -- Though daily learning, I LOVE EXCEL! Jennifer |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA SumIF
Hi,
=sumif(RngInvoices, InvoiceNo, RngBoxesSold) Where RngInvoices is the range containing your invoice numbers InvoiceNo is the Invoice # selected RngBoxesSold is the range contain the boxes sold e.g. =Sumif($a$2:$a$1000,InvoicNo,$D$2:$d$1000) HTH "Jennifer" wrote: Can I just say I am truelly learning Excel is never ending! This project started rather modest. Ha! Ok- I have a userform it displays an invoice # via cbobox. How do I have a label on the form that looks at that invoice # goes to the producedata worksheeet and does a sumif of the boxes sold. Thank you! -- Though daily learning, I LOVE EXCEL! Jennifer |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" | Excel Worksheet Functions | |||
Sumif | Excel Discussion (Misc queries) | |||
Embedding a Sumif in a sumif | Excel Worksheet Functions | |||
nested sumif or sumif with two criteria | Excel Worksheet Functions | |||
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function | Excel Worksheet Functions |