Formula To Locate Second Occurrence With Multiple Conditions Met

Mar 17, 2009

The purpose of the formula is to locate the 2nd occurrence of an entry where criteria in other columns are met (used to determine whether people can qualify for an item based on attendance and another condition).

I am using this formula but I know it needs some adjustments and can't seem to work it out or maybe am going about it completely wrong.

=IF(COUNTIF(D2:D205,D2)>1,AND(T2="Y",U2="Y")*1,0)

I need the formula to indicate the second occurrence of this cell with the criteria that BOTH first & second occurrences have T2="Y" and U2="Y". My formula only indicates the first occurrence and the first occurrence if T2 and U2 meet the conditions.

View 8 Replies


ADVERTISEMENT

Using FIND To Locate Second Occurrence Of Character

May 28, 2013

7900 Personnel:7980 PR taxes:7985 Medicare

I can use the FIND function to find the first occurrence of ":" and therefore select everything to the right of it, but how do I locate the second occurrence of ":"?

I want to segregate the 7985 Medicare. What if the data varies, i.e. some rows have one occurrence of ":" and others have two?

7900 Personnel: 7970 Bonus. I always want to segregate the last 4-digit account number and description.

View 6 Replies View Related

Locate First Occurrence Of Value In A Column Whose Values Are In Random Order

Dec 12, 2012

This is a re-submission of a question previously submitted because the title for the first submission was so poorly worded.

I have a column that has numerical values in random order. I want to locate the first occurance of a value in that column.

I have unsuccessfully tried an Index-Match function - apparently unsuccessful because the values must be in ascending or descending order?

View 6 Replies View Related

Count Occurrence Based On Two Conditions?

Sep 24, 2013

I'm trying to create a calendar overview of transactions from a raw data list. the result should be an amount, based on the number of occurrences of a specific transaction type at a particular date. Thus, the counter shall be based on two conditions. I've tried COUNTIF, INDEX, MATCH and VLOOKUP combined but I don't seem to "go all the way".

View 1 Replies View Related

If Formula Using Multiple Conditions?

Nov 29, 2013

I cant seem to rack my brain around how to go about making a formula in order to achieve my desired effect using the IF Formula. The data is as follows:

Worker Status %
S1 75% and higher
S2 42.8571% -74.9999%
SH Anything below 42.8571%

My sheet pulls the workers status from a preset data table, lets say S2 for Joe. I want the cell beside his status to compare what his percentage is and display what the status should be (based on the conditions of the above table). If hes working 73% it will turn up S2 and I can compare the value from the table and the value generated based on his working percentage (I would use conditional formatting to color the cell red or green to indicate if it matches or not.)

View 4 Replies View Related

IF Formula For Multiple Conditions

Dec 22, 2006

I need to set up something like an IF formula that will populate 1 cell based on which of 11 possible values will be represented in another cell. I can do this up to 7 with no problems using the following IF statement:

= IF(G23="1","a", IF(G23="2","b", IF(G23="3","c", IF(G23="4","d", IF(G23="5","e", IF(G23="6","f", IF(G23="6","g",IF(G23="7","h", "OTHER"))))))))

But if I try to put more than 7 conditions in there it tells me I've entered too many arguments. Is there a way I can either use more than 7 arguments or some other formula

View 9 Replies View Related

Formula For Multiple Conditions

May 11, 2006

I need a formula for:
If nothing is entered into J1, leave it blank
But if J1 is greater than or less than H1, have the text "why?" appear in the cell. Late in the day and getting a lil brain dead.

View 4 Replies View Related

Nesting IF Formula With Multiple Conditions

Mar 5, 2014

I need a formula that will determine if a line is active or expired by first looking at the category and then looking at the number of days. (While still incorporating the ISBLANK section of the current formula.)

For Example: If the category is either FWW or FWW Ext then the line will expire after 365 days. If not, then it will expire after 180 days.

I've attached a sample spreadsheet.

Book2.xlsx

View 12 Replies View Related

SUMPRODUCT Formula - Multiple Conditions?

Dec 6, 2009

Can a sumproduct formula accomodate multiple criteria?

The following is a sumproduct formula, for just one condition.

SUMPRODUCT(--(A1:A100="Red Sox"),--(B1:B100""))

View 9 Replies View Related

SUMIF Or An Array Formula - Matching Multiple Conditions

Jan 14, 2009

I would like to have a formula in one cell that finds records on another sheet that meet certain criteria, and produces a sum of the total quantities associated with that record. The attached workbook has more details as to what I am trying to do.

View 2 Replies View Related

VLOOKUP Multiple Occurrence For Same Lookup Value?

Feb 14, 2014

accomplish VLOOKUP for multiple instances of a same Lookup value

First let me explain about my file:-

Table~1:-

1.B2:B19 I have list of items which required to build a product

2.D2:D19 I have list of shortages against each item

3.C2:C19 I have list of dates when each item shortage will get fulfilled

Table~2:-

1.C22:C31 I have picked the largest 10 different dates from Table1 by using LARGE formula.

Against each date which is update C22:C31, respective shortage qty has to get VLOOKUPED.

When there is a same lookup value, it has to keep pick next value (Shortage Qty) for same date.

View 2 Replies View Related

Counting Each Occurrence Of Multiple Values

Dec 2, 2008

I'm working on an attendance sheet, and have allocated certain letters for related occurrences. For example, V=Vacation day, S=Sick day, B=Bereavement, etc. Over a two-week period (eg - D19:D32), I want to total the number of times one of these values has been used, and add to work hours. Where an employee will enter 7.5 in D19 to indicate hours worked, they may instead enter a 'V' for a vacation day, and have 7.5 hours still added to their total hours in the pay period. I have a formula that works, but it is so incredibly long that I'm thinking there must be an easier way.

Right now, I'm using the following:
=SUM(D19:D32)+(COUNTIF(D19:D32,"V")*7.5)+(COUNTIF(D19:D32,"Vh")*7.5)+(COUNTIF(D19:D32,"S")*7.5)+(COU NTIF(D19:D32,"Sh")*7.5)+(COUNTIF(D19:D32,"H")*7.5)+(COUNTIF(D19:D32,"B")*7.5)+(COUNTIF(D19:D32,"A")* 7.5)

View 3 Replies View Related

Multiple Occurrence Lookup Without Duplicates

Jul 19, 2007

Is there anyway that the UDF can remove duplicates? It's not a huge problem, but would make things a bit easier.

View 2 Replies View Related

Multiple Tabs / Windows Locate By Title?

Mar 2, 2012

I need to locate a specific active IE page among other open pages and tabs. How can I use VBA to locate this specific tab by title? I have seen use of Shells but nothing that I can use to bring this page up as the active page among the other pages on the desktop currently open.

View 2 Replies View Related

Locate Last Used Row & Add Formula Via Code

Aug 27, 2006

How can I program a variable 'rowcountnumber', that would count the number of active rows, starting from row 10 ?

View 8 Replies View Related

Search For Occurrence Of Multiple Texts In Same Row / Cell?

Jul 12, 2014

I have a lookup table in which names of students and the planned session dates are available.

I need to create a chart that has Student Name and Each date of month. The chart should have value of 1 wherever a match is found in the look up table.

I am wondering if combination of searching for multiple strings (student name and date ) will work somehow. The below image explains my problem

StudentTimeTable.png

View 5 Replies View Related

Index Single Occurrence With Multiple Match

May 30, 2012

Given a database as follows:

In A40:

HTML Code:

kindNo.IDSiteAOCOptdMOBMOSShsTAOSDOO
OTH11180MCF411.9296170T2/1/10none16 mos5/4/12
OTH11180MCF411.9208170T2/1/10none16 mos5/5/12
OTH11181DDF415.64132T1/31/08none36 mos5/6/12
OTH11181ESF415.68132T1/31/08none36 mos5/7/12
OTH11182PDF47.94132T1/31/08none44 mos5/8/12
bop11183BPF413.722135T3/6/08none37 mos5/9/12

[code].....

I would like to retrieve all No. from ColumnB if the following 3 conditions are met:

1 Column A "kind" is "oth"

2 values in Column K "DOO" are superior and equal to Cell B2:01-may-12

3 values in Column K "DOO" are inferior and equal to Cell D2: 31-may-2012

Formula presently used in B4 is:

Code:
=IFERROR(
INDEX($B$41:$B$52,
SMALL(IF(($D$2>=$K$41:$K$52)*($B$2

View 3 Replies View Related

Locate Formula Reference Between Spreadsheets

Aug 25, 2006

I have 2 spreadsheets. One of them has various lines that sum different lines from the other spreadsheet, e.g.

Sales = 200100
Expenses = -300345
Other Income = 120000
Selling and Admin = 35000

The other spreadsheet has a lot of details that make up this first spreadsheet.

e.g.

Paper 100000
Cardboard 50100
bottles 30000
cups 20000

These add up to the sales number for example.

Is there a way that I can use the solver or something similar to get all the cells that relate to the first spreadsheet in one shot, and so I don't have to first find what the sales number is made up of, and then what the expenses number is made up off..can I look for the relating cells in one go. Is there a code or something that I can use.

The 2nd spreadsheet has a lot of rows, and it's quite difficult, also I find that when I look for the sum of the sales number and try looking for the expenses number, it gives me cells that are related to the sales number as well.

View 5 Replies View Related

Calculate Only Last Occurrence Or Occurrence Before Specified Number

Dec 24, 2013

I'm getting an export from a CDR. This export contains the date and times people log on and off from a queue. For logging in they dial 511, for logging out they dial 512. They get a voice prompt and type their password. I need to know how much time they daily spend in this queue

At first this looks pretty easy. I just make a sum of all the times they called to 511, then a sum of all time they called to 512 and finally I substract those values and I end up with the correct time spend in the queue.

The problem comes when they call multiple times to 512 without actually logging off. For example, they type the wrong password or simply hang up.

Result is this in the CDR

FROM TO DATE TIME
101 511 23/12 08:34
101 512 23/12 11:58
101 511 23/12 12:34
101 512 23/12 14:45
101 512 23/12 14:47
101 512 23/12 15:00

The actual time spend in the queue is 5 hours and 50 minutes. But Excel calculates this as 35 hours and 22 minutes, because it counts the 512 values no matter what.

How can I make sure that Excel only calculates the values of they are either the last value in the row OR if they are preceded by 511?

View 2 Replies View Related

Find/Locate End Of Range & Add Formula Result

Aug 24, 2006

Dim myDynRange As Range
Dim myLastRow As Integer
Range("H:H").Select
myLastRow = Range("H:H"). CurrentRegion.Rows.Count
myFirstCell = Cells(Counter, 8).Address
myLastCell = Cells(myLastRow, 8).Address
myDynRange = myFirstCell & myLastCell

im having a problem with the last line
myDynRange = myFirstCell & myLastCell

my eventual aim is to do an average on this column with a line like

ActiveCell.Offset(Counter, 1).Value = Application.WorksheetFunction.average(myDynRange)

the reason why my range declaration is so strage is because i was trying to change the dimensions of the range with an offset function because i had many ranges to average but the offset function didnt want to work. this way goes like this....................

View 2 Replies View Related

Extract Number From Multiple Occurrence Delimiter Of String Excel

Aug 14, 2014

I'm trying to extract all the numbers from the left of the delimiter ":" . They can occur once or more.

E.g. cell F2 contains BP2.2.1:40 BP2.2.1:50 BP2.2.1:60 BP2.2.1:70 BP2.4.1:80

and what i want as a result is : BP2.2.1 BP2.2.1 BP2.2.1 BP2.2.1 BP2.4.1.

I've tried =IFERROR(LEFT(F2,FIND(":",F2)-2), " ") but only displays 1 out of a possible 4 in the cell.

View 12 Replies View Related

Index & Match Multiple Items/Criteria: Finding The Nth Occurrence

Jun 25, 2008

I've read the how to for finding the nth occurrence using index/match but the example given does not really help solve my issue. The file I've attached is a condensed version of the actual file, which has more columns but I deleted all but the necessary ones for clarity. What I am trying to accomplish:

On sheet1 there are three columns, Business, Amount, and Closing Date.

Not all the business names have a closing date and the spreadsheet is sorted alphabetically by business name, so sorting by closing date, and using the method used in the topic " find the nth occurrence in excel", is not an option.

On sheet2, I would like to see ALL the business names that have a closing date in the respective month, as opposed to just the first. Then to the right of the business names I have the sum of all the amounts in that month, but I figured out how to get that one already.

View 2 Replies View Related

Program Or Function To Lookup And Locate Typed In Data Across Multiple Workbooks

Jun 12, 2014

have a formula or something along those lines that will look for the data you type in to the selected cell and will show you on how many workbooks it has been entered in. For example, I have workbook a, b, c, d, e, f. all have 12 sheets. On these 12 sheets there is a place to enter the serial number of an item. What I would like to be able to do is on a different workbook be able to type in a serial number and have it show which workbooks it has ever been typed in and its location on said workbooks. and if possible the results of the item which would be whether it was accepted or rejected( this bit is not totally must have. but the workbook and sheet location is a must.)

View 1 Replies View Related

Locate Date Function/Formula Based On Criteria

Jul 7, 2006

I am trying to find the starting effective month for a workyear. The criteria for the selected month is that the data BEFORE the effective month is all zeros. I manage to get the result if the data AFTER the effective month is ALL non- zeroes. If there is any zero, the data fetch will be inaccurate due to the COUNTIF formula. Is there any other way or formula that will enable me to get the result. File attached for testing and reference

View 6 Replies View Related

Formula To Count Weekday Occurrence Based On Month And Year

May 3, 2007

I know there's a pretty compley formula out there that counts the occurence of say Fridays in 2009 - does anyone have this? I had it before in a file but ranged valued the results showing the count of each day of the week for each month in a given year.

View 9 Replies View Related

Count Unique Logs With Multiple Conditions Of Multiple Sheets

Oct 8, 2007

I've got no clue about all this, but I've had to get specific formula examples and fill in the blanks in order for my timesheet to work. There's just one final problem if somebody could please help.

This is a timesheet for a 5 day work week. I need to count the number of unique log numbers for a specific activity. The log numbers counted must be unique across the entire week, not just for each day, which means I want the formula to count the unique log numbers across multiple sheets.

The formula also has multiple conditions. I got 2 columns. The first part of the formula needs to verify a word, say, "split" and if it does it checks the adjacent cell for a unique log number. If both arguments are true, it counts the log as 1 unit.

Here is a working formula for only one page.
=COUNT(IF(D4:D29="split",IF(FREQUENCY(C4:C28,C4:C28)>0,1,)))

Here's 2 problems with this formula:
1. I will count if it encounters a blank cell in the Log numbers the first time (which will happen as not every activity we do has a log#), but it will stop counting if it encounters a second blank cell.

2. I don't know how to make it work across several sheets.

This is an alternate formula which works and skips the blank cells, but I don't know how to add the multiple condition of "split" and to have it work across multiple sheets. I just copied it Microsoft. As I said, I don't understand it, I just fill in the blanks.

SUM(IF(FREQUENCY(IF(LEN(C4:C29)>0,MATCH(C4:C29,C4:C29,0),""), IF(LEN(C4:C29)>0,MATCH(C4:C29,C4:C29,0),""))>0,1))

View 11 Replies View Related

Remove Multiple Data By Multiple Conditions?

Aug 21, 2009

1. I have 4 columns (let's say D,E,I,J);

D E I J
Account1 Sum1 Account2 Sum2
151 93,79 BF2479 30,00
1476757 93,79 BF7 22,00
BF2479 30,00 151 93,79
86041 84,03 23235 30,00
534 6608,45

2. I need to clean the multiple identical data in the list by both Account no. and Sum (of course the list is much longer!) so that the list should look like this:

D E I J
Account1 Sum1 Account2 Sum2

1476757 93,79 BF7 22,00

86041 84,03 23235 30,00
534 6608,45

I must say that I am a beginner in Excel, so I tried to use this:

=IF(OR(E5=$J$5:$J$430);IF(INDEX($I$5:$I$430;MATCH(E5;$J$5:$J$430;FALSE);1)=D5;"";E5);E5)

for column E, and

=IF(OR(J5=$E$5:$E$452);IF(INDEX($D$5:$D$452;MATCH(J5;$E$5:$E$452;FALSE);1)=I5;"";J5);J5)

(which is reverse of the first one) for column J; (The ranges are the ones used in the real sheet), not for the ones in the example above!); The formula does seem to eliminate a dew unwanted data, but does not give me all the wanted results!

View 4 Replies View Related

How To Satisfy Multiple Conditions Using Multiple Criteria

Oct 16, 2009

I'm trying to divide my data into 6 different groups, based on 2 different criteria. First, I am not sure how to write the logical test to take 2 columns of data into consideration (using "&" and "AND" do not work; I am not sure what else to try), and second I can't figure out how to write the formula so that it can select from 1 of 6 conditions.

So, overall here is what I want:

If DL2=3 and CK2=1, then I want this to be labeled as '1'
If DL2=3 and CK2=2, 2
If DL2=1 and CK2=2, 3
If DL2=2 and CK2=2, 4
If DL2=1 and CK2=1, 5
If DL2=2 and CK2=1, 6

These 6 conditions cover all possible combinations of numbers in the two columns.

View 13 Replies View Related

Sum On Multiple Conditions In Multiple Columns

Nov 29, 2008

My data looks somewhat like this :

X Y Z
DOU Quarter Sum
0 Q1 = sum of 1's in Q1
1 Q1 = sum of 1's in Q2
1 Q2 = sum of 1's in Q3
0 Q2 = sum of 1's in Q4
1 Q3
1 Q1
1 Q4
0 Q2

A cell in the SUM column must contain the sum of 1's in column DOU if under column Quarter the value is Q1. Similarly for Q2, Q3 & Q4 if only the corresponding value under DOU is 1.

Its like.. count the number of 1's per quarter and come up with the sum in 4 distinct cells for each quarter.. i.e. quarter-wise sum/count of 1s

View 9 Replies View Related

Add 2 Conditions To Formula Or Modify Existing Formula?

Dec 22, 2012

I'm trying to add either a new condition to a formula or modify existing formula, so blank cells can't be taken as a number like 0 Here is the formula =IF(N14>0,1,0)

***This is what I do with formulas with similar problems =IF(COUNT(Y14,A14)=2,Y14/A14*100,"")

unfortunately the above condition its already a condition by itself so I don't know what to do whether to modify condition or add a new condition which I don't know how to do.

View 9 Replies View Related







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