# Looking Into Range Of Data And Counting Number Of Columns Before Data Is Greater Than 1

May 23, 2014
I need a formula that will look into a range of data and tell me whan the last time a value exceeded 0 (working backwards).

So below the first row would return a value of 6, the next 5, the next 0, the next 1 and so on....

I can do it with an if formula but the amount of days it will be looking at will be too many, plus the range will keep growing as time passes.

FriSatSunMonTueWedThuFriSat

222000000

111100000

111100011

110111110

000111111

000000011

111111111

111111111

5117400000

564000000

8110660000

0000018171318

View 3 Replies
ADVERTISEMENT
Mar 8, 2007

In my Excel spreadsheet I enter todays date in a single cell (A2), then I list various dates that jobs come into shop in other cells (A8:A108). I have cells ( F8:F108) where I have been manually entering an asterik (*) for those jobs equal to or greater than five days old in cell (A2). Is there a formula that can do the math for me? I've tried Excel help but to no avail.

View 3 Replies
View Related
Mar 17, 2009

In my table I have a column called Series and Column called Games.

Now when a user makes an entry the do the following

Enter the Date of a game

then a Series # (I wish I could make this auto increment because a series number can never be used more than once.)

then a game number starting with 1 and never going past 3.

Then Bet Team, Home or Away and Vs Team.

Now let it be know if the column called w/L = Win then that Series is over for ever and there will be no more games played.

If there W/L = Loss then I must create a new row for that SERIES with the next game number.

What I was hoping to do is

If I write in the following going in order

Date ---4-11-09

Series # ---- 6

It should auto populate

Game to the next game #

Bet Team

H/A

Vs Team

I also want it to update my record

C3 is my series Wins

D3 is my series Losses

I do not know how to populate that.

A Series Win = during a series game 1-3 where W/L = Win

A Series Loss = a series 1-3 where there are no wins. A series does not count as a loss until you loose game #3.

View 10 Replies
View Related
Oct 17, 2013

So, in general I do have two columns F and G taken from the other xls.

Age is obviously difference between today and open date

Open date is open date.

I made a table like:

Age and due date.png

In this case, I have 3 rows where there is no open date extracted, therefore is no age. The counter stops on them and shows 529 in total instead of 532 or shows the age as far more than 365 days. How can I count the blank cells, but only in the range of the list I do have, not the all blanks I have from the beginning till the end of the column, so I could (for similar in this case) have 3 blanks cells counted?

Sometimes is also stuck in the middle of counting (when blanks are inside there) and the total number is even smaller. What function can I use to count these 3 (or less, more inn the future) as BLANK to have the total numbers realistic?

View 6 Replies
View Related
Dec 19, 2012

What I am trying to achieve using the example below:

ID Subject 1 Subject 2 Subject 3

1 Italian French German

2 Italian Art Physics

3 German French Italian

4 French Italian German

the result:

Italian French German 3

Italian Art Physics 1

As in the example, the combinations of Italian, French and German where counted, irrelevant of whether the subjects are in 2nd, 3rd or 4th column.

I tried to do this task by creating a pivot table but there are so many permutations and subjects that it would take me a long time to add the combinations.

View 6 Replies
View Related
Jun 28, 2014

I have a table with two columns.

PartNumLoaction

CCN01905J6

CCN01905J100

CCN01905J200

CCN01905J300

CCN01905J400

CCN04455J800

CCN05363J3

CCP01960C1

CCP01960C3

I would like to create another table (in a new sheet) which displays the number of times each PartNum appears in the first table.

PartNumQTY

CCN019055

CCN044551

CCN053631

CCP019602

The amount of rows in a table is variable and can reach thousands of rows.

View 2 Replies
View Related
Aug 6, 2014

In column A I have a list if places that can contain duplicates ie

Manchester

Birmingham

London

Birmingham

London

Manchester

Manchester

London

In column B through to D a list of statements to which there are multiple answers i.e.

Yes / Maybe / No

What I'd like to know is how many 'Yes' answers are in the data range for column B:D in Manchester

I've used a countifs but have to result to multiple countifs adding each column together which is fine for 3 columns but not when there are 50!

View 5 Replies
View Related
Oct 19, 2012

I want to have the number of used columns in a worksheet. The information will be used to understand what range the data is in. So for the rows I am using nRows = Application.WorksheetFunction.CountA(myRange). I am hoping to have something similar for the columns.

View 6 Replies
View Related
Dec 19, 2012

I have this data lets say id denotes a particular house and the multiple entries of the same house are for different members of a house. Now i want to calculate the total no of people who earn in a particular household i.e if a cell is filled or not.

idB C

00118000040000

001

001

001

002170000

[code].....

View 2 Replies
View Related
Mar 3, 2007

In my Macro , i add a worksheet and depending on certain conditions i decide whether to populate it or not.

At a later point of time i am checking if the newly created worksheet is empty or not using the following check :

If ActiveWorkbook.Worksheets(ISheet).UsedRange.Rows.count <> 0 Then

Now what i have noticed is that even in cases where the "ISheet" is empty the above condition evaluates to true for the first attempt. I cannot understand why ?

let me know if the query is ambiguous and i will post the code snippet

View 3 Replies
View Related
May 16, 2014

I've been desperately trying to figure out a formula that allows me to count the number of rows in a column that have different values, but that only counts those rows in which other conditions have been met. Probably sounds a little confusing, which is why I'll illustrate it with a screenshot:

The file contains a listing of major executives of a variety of different firms in different years from 1992 onwards. In the screenshot for example, you see the executives of AAR Corp from 1992 to 1997. Since my file however consists of 240,000 rows, there's a number of c. 2400 firms with their executives over a time period of 20 years each. Since not necessarily all executives remain with their companies for the rest of their lives, some executives show up for a number of different firms in my sample.

I want to determine at how many firms each executive worked within his current industry up to the respective year, based on the information of the 2400 companies and executive data over 20 years. The current industry is classified by 1 digit SIC codes (column U) and each firm has an individual firm identifier which is the CUSIP in column S.

For example, when applying this to the first row in the screenshot (Ira Eichner), I would need a formula that counts the number of different CUSIPs (thus firms), given that the EXECID (executive ID, identifier for each executive; column I) equals 9248, the 1 digit SIC code (column U) equals 5, and the Year (column J) is below 1992.

View 7 Replies
View Related
Mar 6, 2003

I have several columns in an excel sheet which contain values (eg. Names). The entered names can be unique or already exist in the column. I need to find out (using a function or macro) how many different names were entered. Duplicates shshould be ignored in the count.

View 9 Replies
View Related
Feb 7, 2014

If I have 1,000 entries in a column is there an easy way to determine the number of times a certain item is in the columns. For example if field A1 is "qwerty" I wan to see how many times "qwerty" or field A1 appears in the entire column?

View 2 Replies
View Related
Aug 21, 2013

I have a range of data and need to summarize some of the data. In the table below is an example of the data. I would like to have a single formula where I can count the number of rows where the end date - start date is < 14 days. I would prefer not to add an additional column for the datediff value. Is there a way to do this with either arrays or named ranges?

Name

Start

End

Other data

Verizon

1/10/2010

1/25/2010

AT&T

3/2/2010

4/14/2010

View 1 Replies
View Related
Aug 17, 2009

I have a very big list in one column with the customers name and its account number. I am looking for a way to extract just the number from the cell.

I am aware of the 'fit data to columns' option but some of the customer names have an inconsistant number of spaces to assign a delimiter.

View 8 Replies
View Related
Dec 4, 2012

My data looks like this in one sheet:

A

2

B

C

D

1

E

F

3

G

H

I

Where A is associated with 2 other letters, B and C. D is associated with one other letter, E, and F is associated with 3 other letters. I want an automated way to paste this into 2 columns in a new sheet, like this:

A

B

A

C

D

E

F

G

F

H

F

A

2

B

C

D

1

E

F

3

G

H

I

View 2 Replies
View Related
Apr 16, 2014

How can I compare the data of two columns, and if the same, to show me the number from a third column? I upload a quick sample

View 4 Replies
View Related
Feb 11, 2014

Original

01012014 DAVE JOHN

02012014 MAT

03012014 CHRIS MIKE PHIL

What I want

01012014 DAVE

01012014 JOHN

02012014 MAT

03012014 CHRIS

03012014 MIKE

03012014 PHIL

View 4 Replies
View Related
Aug 13, 2012

I have an excel sheet which is currently 1,100 lines long and expected to increase and has a number of dates in columns W-AO representing the dates in which someone has had an onsite assessment. I wish to report in column AQ if there has been any visit activity in the month, i.e August for this monthâ€™s report. Is there an Excel function which will allow for this? Im thinking something like having a drop down list to select the month at the top of the column and then the sheet returns a value of 1 for all lines where a there is a date equal to the month selected?

I guess it is also worth mentioning that the sheet is setup as a table.

View 8 Replies
View Related
Jan 29, 2014

I am using Excel 2003 and I need to count occurrences involving two colums like this: on sheet "SALES", column I has values ranging from 8.00 to 10.00; column M has positive and negative values.

formula to count how many numbers in column I exist between 8.00 and 8.99 associated to a positive value in column M? And likewise for negatives?

View 2 Replies
View Related
Jul 24, 2008

If I have a range of cells, say B1:BA50, how can I find the number of columns that have data entered?

For example, if cells B1, E2, E20, K25, R15, R33, R45, T3, Z44, AA20, AZ16, AZ22 all had data entered, I'd have 8 columns with data.

How can I find the value 8?

This is what I have tried but doesn't work:

View 9 Replies
View Related
Nov 12, 2009

My goal is to look at a column of numbers and count the number of consecutive cells that are positive (or negative), while ignoring blank cells that may be in between them. Using the first formula on this thread. http://www.excelforum.com/excel-gene...-than-0-a.html

I was able to adapt it to my own data, but whenever I had blank cells in my data the results were not reliable. the formula i am using now is =IF(COUNT(1/((A1:A27<0)*(A2:A28<0))),MAX(FREQUENCY(IF((A1:A27<0)*(A2:A28<0),ROW(A2:A28)),IF((A1:A27<0)*(A2:A28>= 0),ROW(A1:A27))))+1,0). for a bunch of data in column A. With limited knowledge of excel I'm not exactly sure how this formula works, so I'm not sure how to tell it to ignore all blank cells. I attached an example that shows how it fails with the blank cells

View 2 Replies
View Related
Mar 1, 2014

i was stuck with some mass data which spans over many rows and columns. i am relatively new to excel and wanted to know how i can get this data arranged in a way where i can access all the data from a printable view. i have attached a file explaining basically what i want.

View 5 Replies
View Related
Sep 22, 2006

I have 6 columns of data laid out as follows,

columnA columnB columnC columnD columnE columnF

XXXXXXXX XXXX XXXXXX XXXX XXXX XXXX XXXX XX

XXXXXXXX XXXX XXXXXX XXXX XXXX XXXX XXXX XX

I need to find data in columns B and C and add the figures from column F, which drop down one line. I have written the following formula which is giving me far higher figures than I should be getting

= SUMIF($B$2614:$B$2640,"bhree*",IF($C$2614:$C$2640,">=01/07/2006",( OFFSET($C$2614:$C$2640,1,3,1,1))))

View 9 Replies
View Related
Jan 14, 2014

I'm looking for the easiest way to count the number of occurrences within a cell range.

The formula that I'm currently using is:

=COUNTIF(D$5:D$8,"a*")

This counts the number of cells that start with 'a' and returns the sum. It seems to work fine, but when I try to make it look for more values in the range it gives me an error. For example;

When I want to find multiple values in the range and count them all, I use this formula:

=COUNTIF(D$5:D$8,OR("a*","b*","c*"))

View 9 Replies
View Related
Jan 13, 2014

Need a formula for counting how many consecutive cells where the value is gretaer than or equal to +1

For example 1,

J18 = 7

K18 = 9

L18 = 3

M18 = 2

N18 = 8

O18 = 1

P18 = 8

Q18 = -17

In the above example the result would be 7

Example 2:

J12 = -22

K12 = 9

L12 = 4

In the above example the result would be 0 since the 1st value was -22

View 3 Replies
View Related
Oct 24, 2012

Using the following code to remove empty rows based on whether a specific range of columns is empty. The code works if the cell has a zero, but not when the cell is blank. An example of the data is attached.

VB:

Public Sub DelRows2()

Dim Cel As Range, searchStr, FirstCell As String

Dim searchRange As Range, DeleteRange As Range

[Code].....

View 1 Replies
View Related
Dec 7, 2011

How would I go about counting the number of times TA shows within strings of text in a range within a sheet. Example: TA,MH in cell A2, CB,TA in cell C40, ES,TA in cell Q19. Result would be 3. Ideally, I'd like the formula to reference a cell that has TA as the look up data such as in A1 I'd have TA.

View 4 Replies
View Related
Jun 30, 2009

Can someone pls. assist me with obtaining an Excel or VBA solution for joining data from across a range of cells/columns into one cell? The single cell containing the intended output has to include the name of the source(s) that are noted on the header column and the price corresponding to each source but would exclude the sources which did not have pricing data. Example of logic is noted below:

Cells B1 - D1 contains names of pricing sources.

Cells B2 - D2 contain prices from these pricing sources.

Intended output: Cell E2 would have the names of all the pricing sources that had prices as well as their corresponding prices; but would exclude those that didn't.

Lastly, pls. see attached Excel file for format of data and intended output in Column E.

View 8 Replies
View Related
Aug 10, 2006

I have a Sheet which gathers data from another Sheet in the same Workbook, then uses that data to produce more output. However at it's smallest it is only 2 rows of data deep and 2 columns of data wide, and at it's greatest it is 100 rows deep by 48 columns wide.

I would like to display only the relevant output by "Unhiding" the completed rows and columns.

After headings etc the rows start at 28 and the columns at N.

I have written the following which works for the rows but nothing happens with the columns,

Private Sub Worksheet_Activate()

Dim MyRange As Range

Dim MyRow As Integer

Set MyRange = Range("a28")

MyRange.Select

Do

MyRow = MyRange.Row

If MyRange.Value > 0 Then

Rows(MyRow).Select

Selection.EntireRow.Hidden = False

End If

Set MyRange = MyRange.Offset(1, 0)

Loop Until MyRow = 128

End Sub...

View 3 Replies
View Related