+ Reply to Thread
Results 1 to 6 of 6

if and - if or statements

Hybrid View

  1. #1
    Registered User
    Join Date
    12-14-2008
    Location
    tampa
    Posts
    6
    daddylonglegs,

    thats amazing!!!!! i don't think i could have deduced that with my present knowledge. i have no idea how that works ( and i stepped thru with the formula auditing tool) hopefully i can learn how all those commands -- that are certainly new to me -- work by using help.

    by the way you were right about me referring to the wrong column in my example thanks for picking up on my intent. i altered your formula and that column works perfectly now --see attached.

    there is one small thing: the other column -- see attached -- in the very first output has an n/a in it instead of 52.5. i have put the spreadsheets side to side and everything is perfect except for this. since i have no clue how your statement does what it does - i still need help.



    thanks again,
    jccamp
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Actually I altered my original suggestion. If I'd left it as it was then it would have worked.....

    Try this slightly altered version in C5 copied down

    =IF(AND(E5<>E4,E5="SHORT"),MAX(INDEX(A$3:A4,MATCH(2,INDEX(1/(E$3:E4<>"long"),0))+1):A4),"")

    The column D formula should probably be altered in a similar way

  3. #3
    Registered User
    Join Date
    12-14-2008
    Location
    tampa
    Posts
    6

    Smile

    well how cool is that?


    that worked!!!


    i'll not even ask how until i've studied it enough to at least ask a semi-intelligent question. (i dont need any help looking silly)

    thanks again
    jcccamp

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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