=SUMIFS(CHOOSE(MATCH(F$17,$I$1:$L$1,0),$I$2:$I$13,$J$2:$J$13,$K$2:$K$13,$L$2:$L$13),$C$2:$C$13,$E18,$E$2:$E$13,$B18,$F$2:$F$13,$A18,$G$2:$G$13,$C18,$H$2:$H$13,$D18)
i want vba code for this excel
=SUMIFS(CHOOSE(MATCH(F$17,$I$1:$L$1,0),$I$2:$I$13,$J$2:$J$13,$K$2:$K$13,$L$2:$L$13),$C$2:$C$13,$E18,$E$2:$E$13,$B18,$F$2:$F$13,$A18,$G$2:$G$13,$C18,$H$2:$H$13,$D18)
i want vba code for this excel
any one help me
i have attached excel file also
please see and write help any one
am trying but showing error
Please Login or Register to view this content.
Last edited by FDibbins; 04-07-2016 at 02:03 PM.
Welcome to the forum
Sorry for off-topic interjection:
Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.
I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.
Thanks again for all your hard work here!
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
gurusiva,
I would "name" the various columns in your Database as ranges, then "define" the names in the Macro,
You can then have a one line code that finds every cell in each range that matches the criteria, and puts the appropriate total where you want.
There is a very clear step-by-step guide on this at http://www.exceltip.com/tips/sumif-f...oft-excel.html where the Macro structure finds the total from three criteria (salesperson, region and product) as follows:
Hope this helpsPlease Login or Register to view this content.
Ochimus
hi Ochimus
very thanks for the quick response
but i want sumifs(choose(match(,,,),,,,,,,,,),,,,,,)function please refer the attachment and help on the same
gurusivakumaran,
I don't understand your comment?
Your original post says categorically "i want vba code for this"
I gave you the VBA code.
It allows you to get the total based on three variables, with a link to a practical example that you can adapt,
What else were you expecting?
Ochimus
hi
please see my attachment
formula applied for yellow column
i want vba for that formula
refer the data for your reference pls help
data is there in data sheet in that attached book11.xlsx
i want summary in that first sheet
urgent anybody help
OK, try the attached.
Data sheet has "Dummy" database covering four weeks.
Summary sheet has "DropLists" in C4 to select the "RGM_HQ1", and in C6 to select the Buyer Number (using the fixed list prevents typing errors).
When you click the Button, the Code below checks each row in the Data worksheet, and copies onto the Summary sheet every row matching the criteria you specify.
OchimusPlease Login or Register to view this content.
Dear Ochimus,
excellent very thanks really great very very thanks for helping quick response
Dear ochimus,
one more doubt , if the week is duplicate means it automatically sum how to do any idea ???
please help to me
Dear ochimus,
duplicate value given in your code i want unique and sum the value
anyone help
Last edited by gurusivakumaran; 04-15-2016 at 08:32 AM.
gurusivakumaran,
Been "afd" for week for family reasons, Will have a look at this tomorrow for you, and see if I can give you the code that will show one number for all the Database rows meeting your different criteria.
Ochimus
Ochimus,
i have attached my working file , please help the same
Last edited by gurusivakumaran; 04-18-2016 at 11:28 AM.
gurusivakumaran,
Having looked at your attachment, why are there two tables in the Data sheet (Cols A - I and K - S)?
In the Data sheet, the following Buyers have two Cities. Are these just "typos", so there should be only one city?
9243 GANESH AGENCIES Yercard and Yercaud
22401 SRI JAYALAKSHMI OIL STORE Atur and Attur
22405 RITHAN TRADERS Valapady and Vazhapadi
22406 DINESH AGENCIES Namakkal and Nammakkal
Ochimus
Last edited by Ochimus; 04-18-2016 at 06:35 PM.
Duplicate posting - please ignore
no , this is not duplicate its spelling mistake , ill correct my data
please help
gurusivakumaran I think Ochimus meant that they had made a duplicate post, not you
gurusivakumara,
FDibbins is correct - It was my message asking about the two tables that was "duplicated" by mistake.
Ochimus
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks