I want to get the result in D1 cell. In A1 Pay Amount, B1 Date of increment, C1 Pay month is written. I want D1 to be filled with new Pay. I change B1 looking at one's date of increment. Initially, the Pay is 10000 to be put in D1(as is done). But, if B1 cell is changed, then 3% of A1 should be added to that particular month every year for 12 months. E.g. if I change B1 to 01/05/06, then till D4, pay should be 10000 and in D5 pay should be 10300 for the next 12 months and again 3% of 10300 for the next 12 months i.e a change of Pay should be in D17, D29 and so on. As because, in the nest IF condition, 7 IFs are available, how best can I solve this? Is it possible in Excel?

A B C D
10000 01/01/06 01/01/06 10000
01/02/06 10000
01/03/06 10000
01/04/06 10000
01/05/06 10300
01/06/06 10300
---
---
01/12/06 10300
01/01/07 10300
01/02/07 10300.................

I have a previously working _chnage event that I am now trying to nest a similar event in. Neither event works now. What am I doing wrong?

Private Sub Worksheet_Change(ByVal Target As Range) Dim refrange If Target.Address(0, 0) "C55,G107" Then Exit Sub refrange = [MATCH(C55,lst_AgentType,0)] With Sheets("NewInput").Range("d63:r63") If refrange = 1 Then .NumberFormat = "#,##0" ElseIf refrange = 2 Then .NumberFormat = "#,##0.00" Else .NumberFormat = "0.00%" End If End With If Target.Address(0, 0) = "G107" Then refrange = [MATCH(G107,lstCommRev,0)] With Sheets("NewInput").Range("E107") If refrange = 1 Then .NumberFormat = "#,##0.00" Else .NumberFormat = "0.00%" End If End With End If

One of my macros is a tied to a worksheet_change. The macro runs and gives me the result that i want, however excel flips to the sheet that the sub is running for.

example:

Sheet1, Change the cell excel flips the visible to sheet2 macro runs

Its kinda of annoying. I would like excel to stay on sheet1 where i am trying to finish data entry. I suspect it is how i have writen the macro. Any help at all on how to clean it up.. or a better way to write the same thing would be very appreciated.

Sub TermPlacement()

' Term_Placement Macro ' Uses the Value of Term to insert a formula repeatedly in a colum.

Dim sNFormula As String Dim rTerm As Range Dim rStart_Cell As Range Dim rNpayment As Range

'The reference cell located directly above the first cell in column Set rStart_Cell = Worksheets("Floor Plan").Range("$B$13") 'Additional set values....................

I'm trying to create a nested IFs statement that looks at a range of cells between 2 tabs within the same worksheet, determines if there is a value of 1 in ANY of those cells, and if there is, to multiply the value of yet another cell by 1 in a cell on the second tab. So, if 1 is a value in any cell of Tab 1 cells C82 to C86, then in Tab 2 cell B21, multiply 1 by the value in 'Tab 1 Cell H5'.

I would like to have a nested if or select case statement to handle a worksheet event. The conditions it will check are: 1.Make sure target is w/in range, otherwise EXIT 2.Make sure that target offset value is not empty, otherwise display message 3.All is good, open form

I’ve tried various formulations and positionings of the statements ,but not all conditions are met with equal success.

What happens is I get the the first two conditions, but the third doesn’t work.

My objective is to replace a text string with a numeric variable. The string has text values such as US, Canada, Germany, France etc, There are about 15 such words in total. Each row will have a different one of the 15 text strings.

Each text string has a corresponding number, which I want to use in various formulas throughout the spreadsheet. The numbers are located on a separate worksheet (“Match Rate”), within the same workbook. I obtained the numbers from a formatted report, which I simply pasted into the second worksheet. Due to the complexity of the report, I can’t reformat the numbers to allow use of the VLOOKUP function.

I created the following function, but unfortunately it doesn’t work. Can you help, please?

I’d like to stay with a VBA solution, since a simple if/then sequence such as this is an excellent introduction to the powerful world of VBA... (it just doesn’t work, yet). I suspect the problem is in the calls to the Match Rate Worksheet.

Ok. Here's what I'm trying to do. I have a drop down menu of certain providers located on cell F5. Each one charges different rates per day located on another sheet. Here's the kicker two of those providers charge different rates depending on the amount of days. Those two are UASC and CMA. For the First 5 days they charge one rate and after the 5 days they charge an increased rate.

I'm trying to have one cell located on the first sheet display this information with all the proper calculations. The below formula gives me a false value. I'm not even sure if it works. I know a little bit of excel through some intro courses in college but I'm not sure if a formula like this would work. I know laugh it up.... : ) but I'm not too saavy with formulas....

If pVal = "(MID(A7,8,9)="GIR" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

ElseIf pVal = "(MID(A7,8,9)="NL" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

ElseIf pVal = "(MID(A7,8,9)="BE" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

ElseIf pVal = "(MID(A7,8,9)="AT" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

ElseIf pVal = "(MID(A7,8,9)="DE" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

ElseIf pVal = "(MID(A7,8,9)="PH" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

ElseIf pVal = "(MID(A7,8,9)="AU" Then LookupRetrieve = INDEX('ERIS INPUT'!$C$2:$C$65536,MATCH(A7,IF(Reconciliatie! C$3:C$65536=C7,Reconciliatie!A$3:A$65536),0))

Else LookupRetrieve = "isingcode missing" End If

End Function

The formula is a vlookup formula (Index/Match but with multiple criterias such as the use of Mid).

I tried Concatenate but the formula is too long and has a lot of characters and VBA seems better.

I'm building a macro and need to know how to add a nested if-then statement. I need to create a formula in a new column whose value extends to the last row of the database. My base formula is sumproduct(--((A2:A:last row which I need to calculate&B1:B same thing)=A2&A2))

I am trying to write a formula that will satisfy the following:

C1 and G1 are number values.

IF (cell E1 does not contain any text) AND (G1-C1-12.5>=0), then output (G1-C1-12.5), otherwise output nothing (""). BUT, IF (cell E1 DOES contain text) AND (G1-C1-13>=0), then output (G1-C1-13), otherwise output nothing.

I'm trying to build this formula and I'm only half way through it and it already isn't working. Column D - can be 1, 2, 3, or 4 Column E - can be any number

If column D is 1 or 3, then the VLOOKUP should look up column E and point to the answer in column 4 on another worksheet (Companies in this case). If column D is 2 or 5, then the VLOOKUP should look up column E and point to the answer in column 5 on another worksheet (Companies in this case). This is what I have so far, just trying to get it to recognize if it is a 1 or 2:

I'm hoping someone can help me sort this out. I have a formula I need te determine if a TAT was 'met' or 'missed' and it has multiple criteria. Here is the formula I am trying to get to work:

I've been able to get separate pieces of the formula to work correctly, example: =IF(AND(F2<>"n/a",I2="Amendments",F2<=3,OR(D2<=G2)),"Met",IF(F2="n/a","n/a","Missed"))

but when I try to combine everything into one string I can not get it to work.

I seem to be having trouble creating a nested loop. It seemed simple enough in my brain holder, however, in real life...Well I am here aren't I. Here is my

I am trying to create a nested IF function (has 5 IF statements), however, every time I put the brackets at the end of the function, it puts a little . next to the false answer, removes the brackets and comes up with an error message?

This is only happening on one particular PC, when I create the same formula on other pC's, it works fine so I know my formula is correct.

I am trying to write a function such that the data returned to a given cell will vary depending upon the data entered into another cell. For example: If A1= 105, then G1=20; if A1=106, then G1=15

I have more variables for A1 than 7, so I don't think that nested if...then statements would work. Can I do this using VLOOKUP?

I have a rather large formula that I put together and it's shown in column 'C' in the small sample file I have attached. I'd like to add one more criteria such that I avoid duplicate solutions in column 'C'. i.e. I only want the first occurrence of a group.

The formula works fine 'bucketing' the first entry. If I have an solution in C I want the formula to not give me another answer if the cell immediately above has an answer. In other words, rows 11 and 15 would be blank because rows 10 and 14 have an answer.

I've tried inserting another criteria in the AND statement, like ISBLANK for the cell above, but I can't get it to work. What am I doing wrong, OR is there a simpler solution?

I have an assignment in which I have to use nested, IF, AND and OR functions. Does anyone know the syntax for this kind of function? Basically I have to determine leave time based on years of service and whether the employee is full time or part time. Part-time with less than 1.5 years of service = 0 days of leave Part-time over 1.5 and full-time under 1year = 3 days of leave and full time over 1 year = 5 days of leave. I know how to do a nested function, but I have not worked with both an AND and OR together.

=IF((OR(B14=1,2,3,12,15,16)),"A",IF(OR(B14=4,5,6,7,8,9,10,11,13,14,21,40,41,42,43,44,45,46,47,50,51, 52,53,54,55,56,59,60),"B",IF(OR(B14=20,30,57,58),"C",IF(OR(B14=33,31,32,34,35,22),"E F OR G",IF(OR(B14=36),G,"ERROR")))))

Im checking whether its a defect and if its defect thenchecking the status whether it is ignored if so im counitng the number of defects by counting s.no in column A.

I think its something simple I'm missing here. I have a range of stock prices (Range("E3,E4,E5,E6")) what I'm trying to do is use for each next loop to calculate the number of shares that I could trade. and place those shares in a range of cells adjacent to its corresponding price (Range("G3,G4,G5,G6")). I think the problem is in my loop statements but I can't seem to find it . Could someone kindly show me the error in my ways.

I searched on this and didn't find what I was looking for. I want to count entries that have critieria I specify in two different ranges. Is countif the way to do this?

I was creating a formula in excel yesterday that used nested IF's but I soon found out that the maximum number you can use is 7. So I did a bit of digging and found out that I would be better of using a Select Case in VB.

What I want to do is this:

=IF((SEARCH("case1",A1)),"text1",IF((SEARCH("case2",A1)),"text2",IF((SEARCH("case3",A1)),"text",...etc until I have listed every possible case and I want to do this for a range of cells A1:A1000 or however many entries I have.

I am assuming I would have to use code similar to the solution in this thread:

[url]

The only thing is I cannot translate this to what I am doing. Do I need to write a loop to go through the entire range of cells I want to check? How do I determine if a specific string is contained within a cell? Once the macro is written do I refer to it from a cell or run it from within the macro menu? Please bear with me as I am new to this and have not coded in VB since school.

I have more than seven if statements but don't know how to connect them.

works =IF(C2=$A$2,13,IF(C2=$A$3,7,IF(C2=$A$4,5,0)))works IF(C2=$A$4,,IF(C2=$A$5,3,IF(C2=$A$6,3,IF(C2=$A$7,3,IF(C2=$A$8,3,IF(C2=$A$9,3,IF(C2=$A$10,3,IF(C2=$A$11,3,0))))))))can these be connected? they work for me separately but not all in one.

I've tried Named but that doesn't work because there are way too many things I need to do w/ it.

I have used this board quite a bit, however I never have registered an account with mrexcel. Ive tried searching the internet and your forums for help with this issue and have not had a success getting the results I am looking.

What I am trying to do is get an AVERAGE from cellAD only IF cellW is with in a certain month, AND if Cell U has a certain name (lets call it trainer for now)

and if its possible (would really help) to also include :