+ Reply to Thread
Results 1 to 13 of 13

Values in between

  1. #1
    Registered User
    Join Date
    02-28-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    23

    Values in between

    Hi.

    I have an problem with an if function. I have to get excel to understand that if attendance rises above cell G26 then the pay for the guards will be I26 and if the attendence is in between G27 and H27 then the pay for the guards will be I27 and if the attendance is below or equal to cell G28 then the pay for the guards must be I28.

    Can someone please help?!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Values in between

    Hi Pede,

    Please upload a sample file along with your expected results.. thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Values in between

    Perhaps something like this?

    =IF(B5>G26;I26;IF(AND(B5>G27;B5<H27);I27;I28))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    02-28-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Values in between

    Mappe1.xlsx This should be it

  5. #5
    Registered User
    Join Date
    02-28-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Values in between

    Fotis, it wasn't quite right, but close and I figured it out thanks to your formula

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Values in between

    ..................

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Values in between

    Hi Pede, that is great you figured out formula but please share that formula in this thread as well as that may help other users who lands up here via internet search.

    Also, mark this thread as [SOLVED]... thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  8. #8
    Registered User
    Join Date
    02-28-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Values in between

    =if(B5>=$I$26;$K$26;if(and(B5<$I$27;B5>$J$27);$K$27;$K$28)) I'm new here, where should I mark the thread as closed?

  9. #9
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,101

    Re: Values in between

    Go to your first post in this thread, and on the top right of your the first post, choose 'Thread Tools' and there is where you can mark this tread as solved.

  10. #10
    Registered User
    Join Date
    02-28-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Values in between

    Should all be done now. Thanks for the help everybody!

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Values in between

    HI pede,

    below is what I got from forum rules:-
    If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.


    http://www.excelforum.com/forum-rule...rum-rules.html

    Regards,
    DILIPandey
    <click on below * if this helps>

  12. #12
    Registered User
    Join Date
    02-28-2013
    Location
    denmark
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Values in between

    Already done. But thanks for the tip. Problem solved!

  13. #13
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Values in between

    you are welcome pede..

    cheers

    Regards,
    DILIPandey
    <click on below * if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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