# Subtotal And Countif In One Formula With Alphanumeric Values

May 9, 2014
I have a data set of students results and I have been using countif to pickup similar grades eg, C1, C2 and C3 all as C. However I need to subtotal filter against teachers and the sumproduct won't let me use C* as a wildcard to pick up the three types of C. How I can subtoal countif multiple criteria.

View 3 Replies
ADVERTISEMENT
Jan 2, 2010

I'm looking for a SUBTOTAl IF function (if there's any) that would sum all the distinct values in a column for a given criteria based on another column. My data is listed below:

Column A Column B

(Quarter) (Revenue)

Q1 2008 $10

Q1 2008 $10

Q1 2008 $20

Q2 2008 $15

Q3 2008 $25

Q3 2008 $25

I'm looking for a formula to sum the DISTINCT Revenue values for Q1 2008, Q2 2008, and Q3 2008 based on the autofiltered list. The formula result should change dynamically based on the autofilter selection.

View 9 Replies
View Related
Oct 23, 2008

I’m trying to get my sheet so that at each change in month it creates a sum of the value but I want to sum to show up in the subtotal value column.....

View 10 Replies
View Related
Jan 5, 2014

Excel 2010 windows 8

I am in need of a formula to count filtered results. On Sheet1 (Job Flow) the user enters data continually . The most important is the Date in column D some measurements in columns N,O & P that gives a result as a code, example s15020 or c3005 in column Q. A vlookup is then pulls up a price for the code.

On sheet two Column A There is a list of all the codes. I need a formula that will give a count in column B for the amount of codes that was entered in to the data base "sold" for a date filtered time period, be it a week, month or year. In other words the codes in ,column A sheet 2, should reflect the amount of units for the time filter on page1.

View 1 Replies
View Related
Dec 7, 2006

I have created a log file for work which records jobs processed. Additional code has just been added to retrieve job information data from a statistical process control program. This works fine however the spc program outputs the Ohmic value as ohms which I need to convert into alphanumeric format. For example: job value is 24K4, spc outputs as 24400 which I need to convert to 24K4. The Ohmic values range from mOhms to gOhms. Examples below.

0.003 = R003

0.025 = R025

0.150 = R15

1.0 = 1R0

15 = 15R

3600 = 3K6

1700000 = 1M7

220000000 = 220M

1000000000 = 1G0

Bearing in mind that the above are just examples of possible values, is it possible to convert numeric values to an alphanumeric format similar to those show above using VBA? You may ask why I need to convert. The log file allows manual input of job information where the value is entered in alphanumeric format. It also contains a search form which displays results allowing the user to see if a job has been processed. Obviously it is easier for the user if the job value is displayed as alphanumeric.

View 2 Replies
View Related
Feb 8, 2007

On a work sheet I have 20 columns that may or may not have data in it. In the 21 column I want to have a sum "of the values" in the other columns. Problem is the data is in this form i.e. 6 01/17/07 smr or 15 1/19/07 gtw or 24 01/21/07.

To clarify each cell will have a value of a number from 1 to 99 followed by 2 spaces. Then it can have 2 more spaces and an id tag or just finish with the date.

So, from the example above in column 21 I would have a current value of 45 and it could change if more values were added.

Note values are generated from a macro. It may be possible to change the macro so that a comma or such may be used to seperate the different "values / data types"

View 4 Replies
View Related
Jun 23, 2009

I need to automatically populate a column with an alphanumeric MFR0001 to MFR9999 and am currently using the formula below to add 1 to the start point (A1)...

A1=MFR0001

Formula in A2 =LEFT(C1,3)&(RIGHT(C1,4)+1)

This works perfectly if I start at MFR1000, but breaks and drops the 000 if I use it on the number I need to start with (MFR0001).

View 3 Replies
View Related
Jan 3, 2010

I have declared a number of string variables named "hlpYear1", "hlpYear2" etc in the 'Worksheet_SelectionChange' function. "hlpYear1" contains the appropriate text to display if the selected language is English, "hlpYear2" is for French and so on. I was hoping that I would be able to use VBA to display the appropriate text by way of a 'For..Next' statement along the following lines:

View 4 Replies
View Related
Oct 22, 2007

I have Column A sample below:

Column A

Row 1 WG32127

Row 2 WFH3040 / 3920

Row 3 WFBF3709/3919

Row 4 WG32156/3915, 3911, 3920

Row 5 WG32148129/3915, 2922

I'm trying to use the Left Function to get only the Alpha-Numeric codes only. I'm having the following problems.

1) The alpha-numeric codes are not a standard number of characters (they can vary anywhere from 4 to 10).

2) In some cases the alpha-numeric codes are alone in the column

3) In other cases they are with other numbers with back slashes separating them

4) In the cases where there are back slashes there are spaces, commas and other numbers as well.

Is there a way to use the Left Function to retrieve only Alpha-numeric codes only.

View 9 Replies
View Related
Aug 22, 2012

Someone has sent me a spreadsheet and there are subtotals on it. I want to remove the subtotals add loads of new lines and then subtotal it again rather than trying to scroll though each line and add stuff. However I'm not sure how the subtotal is set up is there an easy way to identify what the subtotal consists of?

View 1 Replies
View Related
May 29, 2007

I have a large list of data including subtotals. I want to copy and paste just the values of the subtotals to another worksheet. I have tried collapsing the list to Level 2 and copying/pasting values but this still carries over the whole list.

View 3 Replies
View Related
Nov 10, 2009

I am wondering if you can sum the numeric parts of a range of cells containing alphanumeric values. Here is an example:

values to sum: 500, a20, ab30

expected results: 500 + 20 + 30 = 550.

In this project, the number of values to sum is large and I do not wish to use long formulas to extract the numeric part of each cell within the range. I am also forbidden to use up extra cells as an intermediate working out. Can you help?

View 10 Replies
View Related
Aug 3, 2012

Any code that can extract the alpha numeric values from sample spreadsheet below?

Where in col A "SCn" is extracted (or copied) and then pasted in col H?

n = 1 to 99

That is - from this:

A

B

C

D

E

F

G

H

I

J

K

L

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

To this:

A

B

C

D

E

F

G

H

I

J

K

L

[Code] ......

There are thousands of rows to extract the alpha numeric values from.

View 6 Replies
View Related
Feb 16, 2005

I have two columns of data: 1 column can be possibly anything, either numeric, alphanumeric, or alpha only (VINS or vehicle numbers). The adjacent column are four different types of vehicles. I've tried concatentating the two to try and count the unique combinations (a truck maybe used more than once during the day), which I can get unique values, but not unique values for each type. Also, the range sizes are variable, but no more that 65 rows.

An example:

5CZ975 Van

25RW04 Straight

5CZ975 Van

ZJ6026 Van

So, the result I am after is 2 vans, 1 straight truck

I found an array in a another post, but it is not working properly (see cell F7 in the attached):

=sum(if(frequency(if($b$2:$b$18=$f7,$a$2:$a$18),$a$2:$a$18)<>"",1,0))

**ctrl+shift+enter**

View 5 Replies
View Related
May 13, 2014

I have 2 columns i want to find out which items match in each column and put the matching value in column c. I have tried Vlookup and continue to get an N/A .. I tried countif and I get either an N/A or a value error. I have tried turning the cells into text but that is not working either..

column A has about 1700 rows and column B has about 4000

MOST CELLS ARE 6-7 VARIABLES.. satrting with either 01, 02, 03 with 4-5 letters following or have a 6 digit number or 6 letter value.

View 1 Replies
View Related
Feb 5, 2009

I have data in a pivot table that has some positive and negative values. At the end of the Pivot Table, it sums the values for each month and then a grand total.

I would like to also have it show the summation of all negative values per month. So it would be:Jan Total

Jan Negative Total

Feb Total

Feb Negative Total

etc...

Grand Total

Grand Negative Total

Is it possible to add such functionality?

Image for reference:

View 9 Replies
View Related
Jul 12, 2006

Is it possible to use the worksheet function Vlookup on subtotal values? If so what is the formula? The problem that I am trying to solve is as follows. I have a sheet (1) listing part numbers that are not moving at a particular depot. On another sheet (2) there are details of sales relating to the non-moving part numbers at 6 other depots, I have added subtotals. Currently I am switching between worksheets to see if I can transfer stock. I would like to id on sheet 1 the total number of sales at other depots, then I can see what part numbers may be transferrable without a great deal of manual intervention.

View 2 Replies
View Related
Feb 6, 2013

I have a workbook with two tabs, Summary & January. The january tab has total expenses for the month of january that are subtotaled by last name. i.e. (baker total, decker total..). I would like to be able to use a formula on the summary tab to pull the values of each of the totals for each person from the january tab to the summary tab.

I tried on the summary sheet doing =jan and selecting the first persons name and then going back to the summary tab and dragging that formula down but it pulls all of the other data within the subtotal on the jan tab and I just want each persons total.

View 5 Replies
View Related
Feb 5, 2007

way to do this but i have a sheet that is into 5 - 6 thous rows, in one of the columns (names) i sort it by names and then order it by subtotal for certain values.

What i need to know, is there anyway i can take just the subtotal values out and put onto another spreadsheet without copying and pasting it all as there are lots of subtotals and this would help alot as the other info is not nec. just the subtotal'd info. either that or is there anyway i can highlight the subtotal'd row info in yellow/bold text anything like that that would make it stand out without having to do it manually?

View 12 Replies
View Related
Apr 30, 2009

I am desperately trying to add a simple subtotal formula but receive the same error ("Type mismatch"):

View 4 Replies
View Related
Aug 21, 2007

The following is what I have in A1:C3.

4 TRUE 0

4 FALSE 4

4 FALSE 4

The Formula in C1 is =IF(B1=TRUE,SUBTOTAL(9,C2:C3),A1)

This formula is then copied down to C2 and C3. I want this formula to subtotal the next two numbers if the cell to the left is true. Right now it is giving me 0, but it should be giving me 8.

View 9 Replies
View Related
Jun 12, 2009

I'd like to point a cell to a subtotal on another sheet but that sheet will periodically have the subtotals removed, more data added, then sorted and subtotalled again. Is there a way to have my other cell find the subtotal that matches a certain criterion (in this case, cost center)?

View 9 Replies
View Related
Oct 24, 2007

=SUBTOTAL(2,A2:A100) can be used in combination with any other formula so that when the data is filtered using autofilter it will only count values greater than zero.

I have attached a worksheet with the example.

In the attached workbook subtotal formulas are used in Row1 for sum and row 2 for count.

When the data is filtered using code "DUP" in column D, the subtotal in cell C2 is "4", whereas in the specified range there is a positive value in only 1 cell that is $1050 in cell C99.

Is there some combination that can be used with SUBTOTAL formula so that it will only count values greater than zero when data is filtered.

View 2 Replies
View Related
Jan 25, 2010

I'm using the formula '=LEFT(A2,4)+0 to shorten a numbered line of text.Is there a way to adopt that formula to do the same thing to an alphanumeric line of text (i.e. 80A0267AA1 to read 80A0267) or even better substitute a "-" in place of the "A" (i.e. 80A0267AA1 to read 80-0267)? I know this is really picky, but I figure it's worth a shot.

View 10 Replies
View Related
Jul 18, 2012

I have another question regarding extracting Alphabet from the alpha Numeric String:

Column A

POT470G12B

PBY100G12

PCLN6400S12

PCX.US10X12

AAPL6000G12A

BP380S12A

BP390S12

The output i want from the string is :

Column A

Column B

POT470G12B

G

PBY100G12

G

[Code] ........

View 9 Replies
View Related
Jul 16, 2013

Just to give you a quick overview (i cannot attach workbook due to data protection for our customer), I have a workbook with two tabs on it, an invoice summary tab and a rentals tab.

This is an extract of the table from my invoice summary tab:

Tab

Net (Zero Vat)

Net (Standard Vat)

Initial Rentals

Rentals

0

[Code] .....

The invoice data is on the rentals tab. Column "C" on the rentals tab details what type of rental it is, as per column A in the table above. the amount to sum on my rentals tab is in column "S".

I have a formula currently which looks like this:

=SUMIF(Rentals!$C:$C,'Invoice Summary'!$A2,Rentals!S:S)

this works fine.

Now the problem i have is i have an autofilter on the rentals tab which will be filtered by different accounts, I need the formula on the invoice summary tab to only show the visible amounts (as per the filter) and not the whole column. I was thinking of a subtotal formula but can't use a sumif and subtotal together (i dont think).

View 8 Replies
View Related
Nov 10, 2006

I am trying to combine a subtotal formula in sumproduct formula but end in error. Appreciate if someone can assist me with the right formula. I would like to combine subtotal in the following sumproduct formula:

=SUMPRODUCT(((C3:C9)=C14)*((G3:G9)=B15)*(H3:H9))

View 5 Replies
View Related
Mar 15, 2013

The attached file Countifs issue.xlsx shows my attempt to construct a "CountIfs" formula that finds the one record out of ten that matches the following criteria:

a) Col A has 10 IDs. 3 of them are between 40 - 49, and another 2 are alphanumeric. This formula SHOULD identify these 5:

=COUNTIFS(A2:A11,">39",A2:A11,"<50",A2:A11,"4AB",A2:A11,"40C")

Doesn't work, It finds the 3 numerics but returns "0" when the two alpha-numerics are added.

b) Col B has a list of dates. 5 of the 10 are this month. This formula SHOULD identify them:

=COUNTIFS(B2:B11,(EOMONTH(NOW(),-1)+1),B2:B11,(EOMONTH(TODAY(),0)))

Doesn't work. It returns a value of "0".

c) Col C shows the Status for each record. 5 are "A" and 5 are "B". The following formula DOES find all the "B"s

=COUNTIF(C2:C11,"B")

But obviously I need the full formula to find the one record out of the ten that meets all the criteria.

in (a) and (b) and enable me to combine all three sections.

View 4 Replies
View Related
Jan 26, 2014

I want to know how many emails are in my list. There is dash sign where the emal id is not available. The subtotal formula gives me the total entries in range but I want to know only email count numbers.

In my range there are 6 entries and only 4 email ids. Now I'm getting output 6 but I want it 4 ignoring 2 dash signs.

View 10 Replies
View Related
May 28, 2013

I'm looking for a formula that acts the same way as the subtotal formula (revises if rows are hidden and only adds visible rows). Is there anyway to get this removal of hidden rows but for subtraction?

View 3 Replies
View Related