Include Another Match Condition To Formula?
Jul 16, 2014
I have this formula =IF(EXACT($E3,N$2),$C3/$I3,"") This works
I now need to add another match condition to the formula using H3,J1 so it would be something like this =IF(EXACT($E3,N$2),(H3,J1),$C3/$I3,"")
But not working
View 2 Replies
ADVERTISEMENT
Aug 5, 2009
I have a formula to pick up certain bits of information depending on the contents of a cell.
=IF($F3="138-1",MID($E3,11,4),IF($F3="151-26",MID($E3,11,4),IF(MID($F3,1,2)="00",$E3,IF(MID($F3,1,2)="40",$E3,IF(MID($F3,1,1)="-",$E3,IF(MID($F3,1,1)="8",$E3,$F3))))))
The data in column F has a mixture of 8 digit numbers including numbers starting with multiple zero's, the numbers 138-1 and 151-26, then some text.
Orginally the 8 digit numbers only started 00 so it was easy to pull out the relevent information, then they started 40 and then 8. I'm just worried that I'm going to end up with too many nested 'if' statements (and reach the max limit), so I was wondering if I could do 'any 8 numeric digits' instead of this current 'dead end' solution.
I'm not sure if I could use a wildcard of some sort with the MID formula
View 9 Replies
View Related
Jul 16, 2009
Basically, I'm trying to alter the code by inserting another condition where if S12 = R than it will exclude the value found in D12, other wise D12 is included. It was initally setup with a range of $C12:$H12 but i had to write it out long to exclude $D12
Here's my ammended ...
View 9 Replies
View Related
Mar 17, 2013
I have attached excel with the logic I am using, but I have a problem and needed logic to update to make sure it is not inserting same data (duplicate data).
Please update the logic so that if it is having same data in sheet 3 it should not insert or delete duplicate.
Code:
Public Sub CopyData()
Dim ws As Worksheet, bi As Byte, vData(1 To 9), bi1 As Byte, vData1(1 To 9), bi2 As Byte, vData2(1 To 9), bi3 As Byte, vData3(1 To 9), bi4 As Byte, vData4(1 To 9)
Set ws = Sheets("Sheet2")
For bi = 1 To 9
[Code] .........
View 3 Replies
View Related
Feb 9, 2010
I want to be able to look up and match several values in my worksheet to confirm, that an entry is valid. I would like the test to return an OK / NOT_OK value at the end of each entry. In the attached file you will find four different variables. In order to include an entry, it must be matched to find related entries, before it can be included.
For an entry to be OK, it must contain a company that has been listed in the same industry, in four different quarters (not necessarily in the same year). A company can be listed in several industries, but as long as there are not four entries in the same industry in four different quarters, the entries are not yet OK (hence NOT_OK). Therefore the only entries that are valid in the attached file are:
Company A Q1 2009 Administration OK
Company A Q2 2009 Administration OK
Company A Q3 2009 Administration OK
Company A Q4 2009 Administration OK
I work in XL 2007, but have converted the attachment to 2003 for maximum compatibility.
View 3 Replies
View Related
Feb 13, 2014
I need an autofilter which filters rows based on a list of values (+50).
The problem is that I am looking for rows INCLUDING values from the list, not for exact match.
I am not able to make excel filter values including the values from the list... I am able just to filter values matching exactly values from the list.
[Code] .....
View 2 Replies
View Related
Apr 2, 2014
I need the values that are copied from the template to copy over in text form from the "Data" Tab. Secondly, the master sheet has multiple lines for each vendor. For the area highlighted in red I'd like for it to copy all cells in column C for the vendor and search the vendor by name. Then, move to the next sheet.
View 10 Replies
View Related
Jan 29, 2007
At the moment I am using the formula
=IF(AND(B3>C3,D3,E3,F3),"eat less","eat more")
I want it to show me that if B3 is bigger than any of the other cells that you should "eat less". It works if a number is entered into every cell, but if a 0 is entered into one of them it comes up with "eat more" when it should be "eat less"
View 9 Replies
View Related
Dec 6, 2013
I'm calculating a variance for a set of actual numbers vs. variance numbers. When there are no actuals, I don't want the formula to calculate a variance. How can I do this?
Spreadsheet attached : Book1.xlsx
View 1 Replies
View Related
Feb 20, 2010
i want to include the dropdownlist to VLOOKUP formula. See the attachment
View 2 Replies
View Related
May 28, 2012
Starting from D6 to the end of the data (could be F6 or AA6) I need to sum the total, but only if the column is visible.
View 9 Replies
View Related
Aug 28, 2012
With the formula I have as:
=SUMPRODUCT(--(GLCodes=$B7),MasterNetAmt_01)
I want to dis-include the CC="06" in the summation. I tried using:
=SUMPRODUCT(--(GLCodes=$B7),(cc="06"),MasterNetAmt_01)
But it gives a wrong calculation
I use "--" because i have character in the cell
View 1 Replies
View Related
May 13, 2013
I'm struggling to include a repeating 8 (or 4) weekly cycle in my sheet.
For instance, week 21 starts on 20-05-2013, than I would like to have the below cells filled untill 26-05-2013, following cells must be blank, untill 8 weeks are over, and the first date you see again is 15-07-2013, and so on. Using the MOD formula, I can get the first day of each cycle correctly, but I'm having difficult to get the next 6 cells entered and the next ones blank again untill 15-07-2013
I'm using now following formula, where B is the date:
Code:
=IF(MOD($B$264-B264;56)=0;B264;"")
but I need to nest another IF I guess that takes care of the rest.
View 3 Replies
View Related
Aug 30, 2013
I would like a cell to show either OK or No depending on the requirements of three other cells as below
G4 is the cell to show a value. For OK a date in G6 must be more than todays date, a tick must be in F6 and a date in D6 must also be more than todays date.
I can get G4 to do each section individually i.e. (A4 has todays date in it, updating automaticaly)
=IF((G6+365)
View 2 Replies
View Related
Apr 20, 2009
I need a macro to match the row values on condotion.
To match the Q column values with S column values.
If suppose i have data i lke this then,
Q| R |S
1|22 yes 22
2|33 no 38
3|35 no 42
4|38 no 45
5|42 no 50
6|45 no
7|50 no
then the output should be like
Q| R |S
1|22 yes 22
2|33 no
3|35 no
4|38 yes 38
5|42 yes 42
6|45 yes 45
7|50 yes 50
View 9 Replies
View Related
Jan 20, 2009
I am having trouble trying to develop a code to include into a spreadsheet for work. It will be a live spreadsheet accessed by a few people who will have control over there own columns in the spreadsheet (2 columns are designated for one project) Each Project director is to edit the info about their project.
So my goal is to put a code in cell C3 that shows the date that cells C4-32 and D4-32 were last updated.
View 9 Replies
View Related
Dec 25, 2012
Build table with 2 matching condition.
View 6 Replies
View Related
Aug 29, 2007
If you open the attachment.. then you will see that Column A has all the names and Column B has it's Value.. likewise.. Column D has all the names and Column C has it's values...I'm trying to first match the names from Column A to Column D and then see if Column B matches to Column C..
View 8 Replies
View Related
Apr 2, 2012
I need to be able to count items if they match a condition in another column, as below
A B
1 Apple Red
2 Apple Green
3 Apple Red
4 Pear Green
5 Apple Red
6 Pear Green
7 Pear Red
8 Apple Red
How can I count how many Red Apples there are. The answer should be 4 but when I use countifs I can either count the no of apples in Col. A or the no of colour Red in Col. B.
I have tried every combination of if, vlookup, and count that I can but keep getting errors or single col. counting.
View 3 Replies
View Related
Nov 13, 2012
I wanted to extract the data from the sheets if it match condition.
In the sheet george, data is in the A9: AE500. in the B9:B500, there is date format (mm-yy).
In the H9:AD500, designed as checklist where update as "Y" if or nothing
I wanted to extract the data from this file to sheet Exctract if any of the cell in the H9:H500 not equal to "Y" and B9:B500 of sheet george is less than or equal to D2 of sheet Extract. in the sheet George, some row will be hidden, i wanted to bring the data from hidden rows also.
View 4 Replies
View Related
Feb 22, 2007
i am trying to do is match 2 columns data based on a condition ie i have data in column "b" of sheet called "balance" data is variable this column has unique indentifiers i want to look at another column and match the uniques identifiers in another sheet if the cell value in column "D" = "please investigate" otherwise do nothing, the (column f) it will be looking up too is in sheet called "hi- port" so if cell value in column "d" of sheet"balace"= "please investigate" match values that are same from colum "b" of sheet "balance" to that of column (f) sheet called "hi-port"
i would like to colour only entire row of sheet called "hi-port" when the data matches to other sheet ie from columns "f " too " b". colour can be any colour
igonre my ranges they are wrong just used as example
Sub start()
Dim oWs As Worksheet
Dim oRngCheck As Range
Dim oCl As Range
Dim cCola As Range
Dim cColb As Range
Dim rngIRd As Range
Dim rngACs As Range
Dim Match As Boolean
Set rngIRd = Range("a1", Range("a65536").End(xlUp)) 'define the rang
Set rngACs = Range("b1", Range("a65536").End(xlUp)) 'define the rang
Set oWs = Worksheets("balance") 'change to suit
'starts at b2 to llow for header row.......................
View 4 Replies
View Related
Sep 21, 2007
I am trying to do the following....I have data in three column in the "historydata" sheet, A, B, C. A lists the dates, B lists categories, and C lists some data. The data in column C is defined by the date and category in column A and B. What I want to do is...I want to copy data in C to the next empty cell in another spreadsheet if it meets the date and category condition. (for instance, if (y,A)=9/17/2007 and (y, B) = bond A, then I want to copy (y,c) to the next empty cell in sheet "marginreq" based on the first column. Here is my code...but it doesn't work.
Sub OJOM()
Dim A As Integer
A = 2
Do While Worksheets("Historydata").Cells(A, 1) <> ""
If Worksheets("Historydata").Cells(A, 2).Value = Worksheets("MarginReq").Range("B5") And Worksheets("Historydata").Cells(A, 3).Value = Worksheets("MarginReq").Range("B7") Then
Application. ScreenUpdating = False
Worksheets("Historydata").Cells(A, 3). CurrentRegion.copy Sheets("MarginReq").cells(rows,count,1).End(xlUp).Offset(1,0)
Sheets("Historydata").Select
Application.CutCopyMode = False
Application.ScreenUpdating = True
End If
Loop
End Sub
View 5 Replies
View Related
Dec 20, 2012
Having a hard time putting this one together..Trying to do: Create a formula that counts how many cells in Column L, that fall within a date range and also have a specific category of "text" (Column E). What I've tried:=COUNTIF($L$4:$L$166,"
View 5 Replies
View Related
May 5, 2008
I did a search to find a question similar to mine and I found this:
Copying data matching a criteria into another spreadsheet
This is exactly the same concept I am trying to accomplish, but don't know how to...at all. I couldn't follow the thread either.
I have a schedule which is constantly being updated (simplier version attached). I want to create a schedule, which will:
1) First ask which region to display the information for (I would like to create the same pop up menu to choose from)
2) Then, it will select only that region's information (all rows & columns) and copy them into a new worksheet and lists it all
-if you go back to the Master List, you can again choose another Region and it will create another new worksheet with that region's information
3) Don't know if this is making things more complicated, but at the bottom of the attached file, there are 3 lines under "Land".
Is it possible to list these under the same spreadsheet as the region it is pertaining to but classify it separately under "Land" (ie leaving space, so it is clear this is separate
View 9 Replies
View Related
Jan 21, 2014
See attached file, "Rate Sample Index-Match Formula".
I need a formula to return the value at the cross section of two (2) lookup values that match. This formula will be input into column D under, "RATE" on the 1st tab, "TEST FILE".
In the 1st tab, "TEST FILE" there are a series of columns as follows;
A = Service
B = From
C = To
D = Rate
In the 2nd tab, "RATES" there is a series of rates with drivers From (green) & To (blue)
The formula needs to do the following;
1. Lookup the "From" value in column B on tab, "TEST FILE" and match to column B2:B59 on tab, "RATES" both highlighted in green
2. Then Lookup the "To" value in column C on tab, "TEST FILE" and match to row C1:BH1 on tab, "RATES" both highlighted in blue
3. Then return the value at the cross section of the match "From" (point 1 above) & "To" (point 2 above) in range C2:BH59
For Example;
The rate From SYD To CBR = 0.33. I have highlighted this in yellow on both tabs to show where the formula needs to lookup the data to return the answer.
Additionally, if we were to add service as an additional lookup match how would this work?
View 3 Replies
View Related
Feb 5, 2014
In sheet 1, I have
Col A Col B
John Sedgwy - R
In sheet 2, I have the following names
Col A Col B
Peter Walker
John Sedgwicky
When I did an array match -> ={MATCH(1,(TRIM($a2)=Sheet2!$A$1:$A$2)*(left(b2,5)&"*"=Sheet2!$b$1:$b$2),0)}
gave me an error but when I did an individual match to both John and Sedgw, it works.
View 4 Replies
View Related
Oct 6, 2009
I currently have a spreadsheet with two sheets. The first is my reporting sheet and the second is called Stores. I currently am using the following formula in the reporting sheet:
View 3 Replies
View Related
Aug 12, 2007
This task joins a string together based on a number of characters per cell in the range.
I want to isolate one range, Col N, and add an IF condition to it.
There may be other issues preventing this from happening, e.g. the number of IF that exist in the complete formula. I will isolate the current cell and its requirements and then post the entire formula at the end for reference....
View 9 Replies
View Related
Aug 8, 2008
I am creating a IF(... formula, here is what i have so far...
=IF(B3='Max' AND C3='Sell', D3-J17,0)
I have two drop down boxes, one at B3 and one at C3, i want to D3-J17, but only when B3 = Max and C3 = Sell, otherwise 0 (really instead of 0 im gonna add in more formula for the rest of the drop downs, but for arguments sake lets say 0), what do i do?
View 9 Replies
View Related
Jun 6, 2014
i am already using a formula in which i need to add a condition.
Existing formula - =IF(ISNUMBER(MATCH(K4,{"Cancelled","On Hold","Onboarded","Open","Profile Available","Profile shared","Rebadge"},0)),IF($AG$1+X4>T4,$AG$1+X4,T4),R4)
i need to replace R4 (at the end of the formula) with this condition - if (R4>T4),R4,T4
View 1 Replies
View Related