if i have 2 named ranges AA BB
Range("A1")=Application.Sumproduct(Range("AA"),Range("BB")) ITS WORK OK BUT WHEN I ADD = 4 GIVE ME ERROR
Range("A1")=Application.Sumproduct(Range("AA"),Range("BB")=4) error when add =4
how to write vba sumproduct
if i have 2 named ranges AA BB
Range("A1")=Application.Sumproduct(Range("AA"),Range("BB")) ITS WORK OK BUT WHEN I ADD = 4 GIVE ME ERROR
Range("A1")=Application.Sumproduct(Range("AA"),Range("BB")=4) error when add =4
how to write vba sumproduct
Last edited by mena; 10-21-2018 at 11:37 AM.
Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.
Remember to desensitize the data.
Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
try:
Please Login or Register to view this content.
As Alan stated, a sample workbook would help.
In the meantime, it appears you are trying to look at range BB and find where it equals 4 then Sum the corresponding cells in Range AA.
Please Login or Register to view this content.
HTH
Regards, Jeff
Try
Please Login or Register to view this content.
With Named Ranges.
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
thanks alot bakerman2 that great
Glad to help and thanks for rep+.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks