Sumif Based On Preset Grouping

Nov 19, 2012

I have situation where my account (from trail balance) will present to different grouping based on reporting, example below. How I can formulaize or using VBA to sum to amount based on the format.

Example :

if i want the format b : if i sumif HCM - the total should be from account code a1001,a1002,a1003 and hrd will sum up based from account code a1004,a1005,a1006

Account Code
format a
Format b
format c
format d
format e

a1001
adm
hcm
adm
adm
hrd

[Code] ........

View 7 Replies


ADVERTISEMENT

Adding Column With Description Based On Preset Codes

Jul 13, 2006

First it should Insert a Column to the left of A. Then it should go to column B and search for the number 99 and delete all rows after it. In column C I want it to do the following formula =vlookup(b2,descriptions!$b$2:$c$250,2,false) and have it copied all the way down to the end of data.

Next I need labels added to the tops of the rows
Next I need the description columns in C to be copied to column I
Finally, beginning at J2, I would like the formula (e2 * g2)/100 entered to the end of data. Attached is sample data.

View 2 Replies View Related

Auto Grouping Based On Cell Value?

Apr 1, 2014

I'm building a sales tracking spreadsheet and need to find a way to auto group certain rows based on their cell value. In my tracker I'd like to group by company name and be able to collapse it to look at the details.

Here's an example of my starting point and how I'd like the data to look like in the end.

Starting State:
Company Name contact name sales stage Forcast amount
----------------------------------------------------------------------------------------------
Company A david brown contracts 10,000
Company A John Smith Won 20,000
Company A D'Arcy Davis Canceled 10,000
Company B
Company B

Desired State:
Starting State:
Company Name contact name sales stage Forcast amount
----------------------------------------------------------------------------------------------
+Company A 30,000
+Company B

View 1 Replies View Related

Grouping Rows Based On Value Of 9 Cells?

Jun 5, 2012

I have a permutation with repeatition of 3 letters in 9 digits 3^9, and I'd like to be able to group all posibble permutations something like:

BBBBBB+2+1 = BBBBBBCCD = 252 rows
BBBB +3+2 = BBBBCCCDD = 1260 rows
5+4
5+3+1 and so on

View 2 Replies View Related

Grouping Of Items Based On Same Parts

Oct 21, 2013

I am working with a large data set containing information about certain items

The items are structured so that they all have seven main sections. Within each main section their is a variable number of parts, that the items are made of.

The items uses only one part from each main section. So all items consists of seven (identical) main sections and seven parts.

I am looking to group items togheter which are precisely identical. I mean the items that uses the same part in all the main sections.

Is there an Excel/math wizard out there? I have all the data, but I can't make Excel do this task for me..

View 8 Replies View Related

Create Average Based On Grouping Of 3 Columns

Mar 22, 2013

If my spreadsheet has columns A-H.

A is Date
B is Room Number
C is Location
D,E,F all have numbers results in them.
G is the average of D,E,F for each person
H is group average.

If I want to define a group average in column H where it calculates the average of a group that attended the same location, date and room, for each group that attended would that be possible?

So For Example (Columns DEF left out for clarity)

Date
Rm
Location
G Inidivual Average

[Code]....

So because room number changed it calculated as a different group. Is this possible?

View 3 Replies View Related

VBA Macro Code For Grouping Based On Column A

May 1, 2014

i need to group the values based on A, B, C columns.

which means all "Chickpea_B-1_11area_3d.csv " will have same timestamp and mean_area_3d values, only D column vlaue changes.....

in the same way, all "Chickpea_B-1_12area_3d.csv" will have same timestamp and mean_area_3d values, only D column vlaue changes.....

now i need all Chickpea_B-1_11area_3d.csv values to be grouped into one. and chickpea_B-1_12area_3d.csv values to be grouped into one..

if you see the output sheet, you will understand clearly, which i did manually for your easy understanding...

i did manually and also attached the sheet for your kind reference and easy understanding... where i grouped all Chickpea_B-1_11_area_3daver_domain_area, fill_factor, leaf_angle_theta, plantHeight, projected_leaf_a into one.... where b and c cols are same for all the D E F G H I Values. in the same way for Chickpea_B-1_12_area_3d and all other below values to be grouped.

like this i have to do for 1000 files. please find the attachment...

View 12 Replies View Related

VBA For Automatically Grouping Rows Based On Text

Jul 7, 2009

I have a pivot table (vendor spend report) which has over 7000 rows of data. There are 38 vendors (some vendors appear multiple times i.e. Accenture Itay, Accenture Germany, etc.). Vendors names are in column B.

I need to have the VBA script search for each of the vendors (and related names) and group them together. Also, last one is for all the MISC. vendors which need to be group together (one's that dont belong to the 38 managed vendors).

Also, I need to rename the Group for each one; rather than Group1, I need to name it "Accenture All" etc...

View 7 Replies View Related

Return Grouping Based On Date Field

Mar 18, 2012

I have a date field 08/09/2011 and want to monitor an item to ensure it's "Approved" before it reaches this date.

The groups are:

Late = this date or past
Within 1 week
Within 2 weeks
Within 3 weeks
Over 3 weeks

How to do this, I tried Nested, and I've tried lookup but I'm not sure how to tackle it.

View 5 Replies View Related

Vlookup Using 2 Condition One Based On Devices And Grouping Column?

May 27, 2014

Attach below are 2 sample file and inside it consist of device,grouping and lb1,tb1,ab1. How do I use excel formulae based on 2 condition and set from vlookup with 2 condition file to vlookup with 2 condition 1 file like a vlookup.

View 11 Replies View Related

Automatic Response Based On Grouping Criteria Via Macros

Mar 27, 2014

Essentially what I want, is to type a medication in, lets say, A2, and for a macro to produce a response in B2 based off of grouping criteria from another worksheet. My workbook better explains what I would like to see happen. A macro would be best for this, right?

View 7 Replies View Related

Vba Macro Code For Grouping Data Based On 2 Hours Time

Apr 28, 2014

I need a VBA macro code to get the output like in the excel file which I have attached with this thread. Which means, I need to group the data for every two hours. in the output I need all 4 cols namely A, B, C, D along with extra col namely, interval based on which I need these groupings to be done..

The code has to be really flexible so that it works for all dates and times in the files. Because like this I have to do for 2000 files.....

Original link: [URL] .....

plant area.xlsx

View 3 Replies View Related

Grouping Data From Two Tables (different Structure) Based On Common Criteria?

Dec 1, 2013

The attached file shows what I'm trying to do - I'd like to fill in the data in the top left corner table (blue-shaded) with the data combined from the two other tables. Think of the Greek letters as names that are grouped into the groups named {A,B,C,D,E} (the names have no significance, it's just an example).

I was able to do so using an array formula and an extra column (yellow shaded) as you can see in B2 - however, this solution doesn't suite my case because the actual tables will be coming from automated processes and cannot be easily manually altered.

I tried inserting the array formula into the sumproduct formula - see B3 - but for some reason this doesn't behave the same as when the array is outside the formula. I should also mention that I came across a user defined function solution - this too is not so suitable for me right now.

View 9 Replies View Related

Preset Tab Locations In Workbook

Sep 10, 2007

i have a User form that i'd like to add preset tabs command locations to.

For example,

on open i'd like the active cell to be on cell M3. and as the user presses the tab button jump to the following cells locations:

P3
Q5
P7
Q7
P9

View 9 Replies View Related

To Sum Cells Until Preset Value Is Reached

Apr 23, 2007

I have a spreadsheet with time values incremented in column A.

In column K, there are numerical values that correspond to the time in column A.

Elsewhere, a specific time is chosen from which to begin the summing of the values in column K.

I need to be able to sum the values in column K until preset values are reached. Then I need to know at which corresponding time value the summing loop stops.

For example, a time of 11:00 AM is chosen as the "start time". I want to sum the values in column K until they are >= 2.000.

At that point, I need to know what the cell value was in colum A that is in the same row as the last cell value in column K.

I can't seem to do it with simple Excel functions without falling into a self referencing loop. So what I need is for a VBA loop to lookup the appropriate values in column K, sum the values, check the total, and continue the loop until the preset total is reached. Then look up the value in column A in the last row of summed values, and return that value.

View 9 Replies View Related

Dropdown For Preset Filters In Pivot

Jul 8, 2014

I have a pivot table where i would like to filter the values according to top 10, bottom 10 etc. I know that it works with using the filters in the pivot tables (Value Filters - Top 10 ...), but for making it easier and faster to use these filters, I would like to have some preset filter options as buttons or a drop down menu that immediately display them.

So that you don't need to choose the filter values yourself. I need to be able to either filter the e.g. Top2 Business Areas or within one Business Area filter the top 3 Business Groups. I thought about maybe making a drop down menu where you can choose the business areas and then another drop down where you can choose the Filter such as Top10, Bottom 10, Top 3 etc.

bSample_Pivot.xlsx

View 3 Replies View Related

Transferring Data Into Preset Table?

Dec 6, 2013

I have 90+ rows of data that I want to transfer into a table format on another worksheet. At present I have laboriously been copying and pasting from one to the other but am losing the will to live

Id like to create a macro to do this for me. Is it a matter of recording the macro to replicate as I copy and paste or is there a better way

View 3 Replies View Related

How To Extract Data With A Preset Time

Oct 27, 2009

I have a big group of test data each has a list of record of the format (time, parameter). But they have different time step, ie. the records have different number of data set in the same duration. I would like to make them the same, so I need to extract data from the records. For example, I have a list of the original record (in column A & B) as follows: ..

View 9 Replies View Related

Dividing To Get A Result Of Whole Numbers Preset

Dec 11, 2009

Does anybody know the code or the formula to divide a number generated by a formula. Id like to divide this number by 2 different set numbers. Meaning if my number comes out ot 19, id like to divide this by 5.5 and if it's not a whole number which this isn't (it's 3.45), i'd like to round this number to a whole number and add 2.5. My end answer would be 3 5.5 and 1 2.5.

Windows XP
Excel 2003

View 9 Replies View Related

When A Drop Down Option Is Selected, Can It Show A Preset Value In Another Cell

Jan 14, 2009

If I have a dropdown with

A (value 1)
B (value 2)
C (value 3)
D (value 4)

and a person selects one of those letters in the dropdown in column 1, I would like column 2 to show the number value associated with it

View 14 Replies View Related

Referring To Array And Adding / Removing One Preset Item

Apr 19, 2014

I'm trying to automatically add and remove one criterion from an autofilter without disturbing the previous existing criteria The autofilter code sounds like this:

Code:
ActiveSheet.Range("$A$1:$L$47").AutoFilter Field:=6, Criteria1:=Array( _
"Clay", "Grass"), Operator:=xlFilterValues

How would I go about referring to this array and adding another item called "Hard" to any pre-existing elements in this array?

I plan on attaching this code to a button and use it as a filter, so when the button is pressed, the item will be added to the list of criteria, and if it is "un-pressed" the item will be removed.

View 3 Replies View Related

Sumif Based On <= Value

Oct 5, 2007

I'm trying to write a statement to incorporate 1 more piece of the puzzle. the formula I have is =SUM(SUMIF(Sheet3!$F:$F,{"F12","F24","F26"},Sheet3!K:K)). In Column F, I have text and Column K, I have numbers. I want to add to the formula if value in K is less than 1, don't add it

View 9 Replies View Related

SUMIF Based On Months In Row

Oct 24, 2013

I'm attempting to sum figures based on the current date. I have a month that's returned from a today function lookup in column B2 (currently 'October').

In F17:Q18, I have the following:
F
April
G
May
H
June
I
July
J
August

[Code] .....

I need to be able to look up today's month (in B2), and sum the row up to that point (so for October, sum Q18:L18). When it ticks into the next month, I want the sum to automatically update to sum to column M

I'm struggling with a SUMIF, my current one sums everything in the row and ignores my "<=B2"

I also tried (MONTH(TODAY()) with corresponding month numbers (Jan 1, Feb 2 etc) in Row 19, but that breaks because Jan-March are 1-3, and it sums them too.

As you can see it's built on a financial year. How to sum the rows up to the current month, and include last year once we're into January-March?

View 9 Replies View Related

SUMIF Based On Month?

May 30, 2014

I'm trying to use the SUMIF function based on a specific month. This month formula has to choose from a range of dates. Currently, the month to report (5) is the only one that works. If I have dates in June and choose 6, it doesn't work.

This is the formula I'm using right now:

=IF(MONTH('Drafting Errors'!C:C)='Error Metrics'!C1,SUMIF('Drafting Errors'!A:A,C5,'Drafting Errors'!N:N),"No data for this month")

View 8 Replies View Related

SUMIF Based On Text

Feb 16, 2010

How can I do SUMIFs based on columns that contain text? Im having some trouble with them.
I just need to check column H for the text "Newham" and then total the corresponding cells in column F

View 9 Replies View Related

SUMIF Based On Two Criteria

Aug 8, 2006

I want a formula to sum all values if two different criteria match. I've attached a sample below. The TaskID and the Time Entry ID are the two data points I'm searching for and the totals column is where my sum statement would be. The numbers are being pulled from another worksheet.

View 7 Replies View Related

SumIf: Keep Stocks, Based On 2 X The Sales

Oct 8, 2008

As you can see I am using the code below in ( I ) =IF(OR(G5="",H5=""),"",-INT(-(-INT(-2*G5/C5)*C5-H5)/C5)*C5)

What I am trying to do is keep stocks, based on 2 x the sales, as you can see G5 I have 15 I still have stock of 35 so I should not need any stock but it has put 50 in. The 50 is a layer rate that I need to order in if I need any. If I had 20 sales and 19 in stock I would want it to order 50. It is the same for all the ones listed in the sheet apart from I8 where it should have ordered but only 40.

View 5 Replies View Related

SUMIF Based On Two Ranges With Two Criteria

Jul 22, 2002

The following table is used in the sumif.

I would like the sumif to use the range with the names, and the range with the dates.

I have a GUI in which the user enters a name and a date and the $ amount earned for that week should appear.

The criteria is the name and the date.

******** ******************** ************************************************************************>
Microsoft Excel - Business Book.xls___Running: xl2000 : OS = Windows Windows 2000
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)boutP20=
IJKLMN3******4michaelb1*14$400.007/21/20025Michaelb1215$450.007/21/20026

[Code] .........

View 9 Replies View Related

Sumif Formula Based On Two Conditions

Mar 7, 2012

I am trying to write a Sumif formula based on two conditions. I want to sum the data in column AK if the data in column D = BUD12 and the data in column E = US Custom. I have written the following formula but am getting a #VALUE error.

=SUM(IF($D$25:$D$700="BUD12",IF($E$25:$E$700="US Custom",$AK$25:$AK$700,0),0))

View 6 Replies View Related

Sumif Based On 2 Row And 1 Column Criteria

Apr 18, 2014

A1:A10 = Criteria Range 1
B1:B10 = Criteria Range 2
C1:E1 = Criteria Range 3

How to sumif all 3 criteria are met?

View 7 Replies View Related







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