+ Reply to Thread
Results 1 to 3 of 3

Formula help please

  1. #1
    Registered User
    Join Date
    09-20-2005
    Posts
    14

    Formula help please

    Im trying to write a formula that basically says

    if the figure in J5 is less than or equal to what is in cell D8
    AND
    less than or equal to what is in E8
    then take the data from cell C8

    ive tried to do an IF statement within another IF statement but i am getting an error. this is the formula i have tried

    =IF(J5>=D8,(=IF(J5<=E8,C8,0)),0)

    Im sure im missing something simple but cant see it, can anyone help please?

  2. #2
    Bob Phillips
    Guest

    Re: Formula help please

    =IF(AND(J5<=D8,J5<=E8),C8,0)

    --
    HTH

    Bob Phillips

    "biggs" <biggs.1vpbmd_1127293544.2691@excelforum-nospam.com> wrote in
    message news:biggs.1vpbmd_1127293544.2691@excelforum-nospam.com...
    >
    > Im trying to write a formula that basically says
    >
    > if the figure in J5 is less than or equal to what is in cell D8
    > AND
    > less than or equal to what is in E8
    > then take the data from cell C8
    >
    > ive tried to do an IF statement within another IF statement but i am
    > getting an error. this is the formula i have tried
    >
    > =IF(J5>=D8,(=IF(J5<=E8,C8,0)),0)
    >
    > Im sure im missing something simple but cant see it, can anyone help
    > please?
    >
    >
    > --
    > biggs
    > ------------------------------------------------------------------------
    > biggs's Profile:

    http://www.excelforum.com/member.php...o&userid=27397
    > View this thread: http://www.excelforum.com/showthread...hreadid=469448
    >




  3. #3
    kk
    Guest

    Re: Formula help please

    Try

    =If(AND(J5<=D8,J5<=E8),C8,0)



    "biggs" <biggs.1vpbmd_1127293544.2691@excelforum-nospam.com> wrote in
    message news:biggs.1vpbmd_1127293544.2691@excelforum-nospam.com...

    Im trying to write a formula that basically says

    if the figure in J5 is less than or equal to what is in cell D8
    AND
    less than or equal to what is in E8
    then take the data from cell C8

    ive tried to do an IF statement within another IF statement but i am
    getting an error. this is the formula i have tried

    =IF(J5>=D8,(=IF(J5<=E8,C8,0)),0)

    Im sure im missing something simple but cant see it, can anyone help
    please?


    --
    biggs
    ------------------------------------------------------------------------
    biggs's Profile:
    http://www.excelforum.com/member.php...o&userid=27397
    View this thread: http://www.excelforum.com/showthread...hreadid=469448



+ 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