+ Reply to Thread
Results 1 to 17 of 17

Entering a formula depending on criteria of cell

Hybrid View

drgogo Entering a formula depending... 03-04-2010, 09:51 AM
TYork Re: Entering a formula... 03-04-2010, 10:21 AM
JBeaucaire Re: Entering a formula... 03-04-2010, 11:39 AM
JBeaucaire Re: Entering a formula... 03-04-2010, 01:47 PM
drgogo Re: Entering a formula... 03-08-2010, 05:43 AM
JBeaucaire Re: Entering a formula... 03-08-2010, 07:48 AM
drgogo Re: Entering a formula... 03-08-2010, 08:10 AM
drgogo Re: Entering a formula... 03-08-2010, 10:45 AM
StephenR Re: Entering a formula... 03-08-2010, 11:07 AM
drgogo Re: Entering a formula... 03-08-2010, 11:22 AM
StephenR Re: Entering a formula... 03-09-2010, 10:18 AM
JBeaucaire Re: Entering a formula... 03-09-2010, 12:38 PM
drgogo Re: Entering a formula... 03-10-2010, 04:56 AM
StephenR Re: Entering a formula... 03-10-2010, 07:59 AM
drgogo Re: Entering a formula... 03-10-2010, 09:02 AM
JBeaucaire Re: Entering a formula... 03-10-2010, 09:59 AM
drgogo Re: Entering a formula... 03-10-2010, 11:14 AM
  1. #1
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Entering a formula depending on criteria of cell

    Be sure to feedback if the solution worked or not.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  2. #2
    Forum Contributor
    Join Date
    01-29-2008
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    237

    Re: Entering a formula depending on criteria of cell

    Thank you fro that bit of code, I followed your instructions, but have code already on that sheet. So i tried to fit it in the code already there and its not working, I dunno if its the way i have entered i.e. in wrong order or where the formula is not working cause its an Array..

    i.e. has {} back and front, as its was original enetred in as a array into the cell.

    Code for worksheet as it is at the moment

    Private Sub Worksheet_Change(ByVal Target As Range)
    
    Dim cell As Range
    
    If Intersect(Target, Range("F2:f3000,g2:g3000,h2:I3000,l2:l3000,m2:m3000,n2:n3000,o2:o3000")) Is Nothing Then Exit Sub
    If Target.Cells.Count > 1 Then Exit Sub
    Application.EnableEvents = False
    If Application.WorksheetFunction.IsText(Target.Value) Then
    Target.Value = UCase(Target.Value)
    
     For Each cell In Target
            If Not Intersect(cell, Range("A2:A10000")) Is Nothing Then _
                Cells(cell.Row, "E") = "{=MAX(IF(ISNUMBER(0+MID(D13,1,ROW($1:$4))),0+MID(D13,1,ROW($1:$4))))+IF(ISNUMBER(MATCH(RIGHT(D13,1),$X$2:$X$27,0)),VLOOKUP(RIGHT(D13,1),$X$2:$Y$27,2,0)/10000,0)}"
        Next cell
        
    End If
    Application.EnableEvents = True
    
    End Sub
    Thanks

    G

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1