+ Reply to Thread
Results 1 to 5 of 5

IF function: extending to read multiple cells/answers

  1. #1
    Registered User
    Join Date
    11-25-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    IF function: extending to read multiple cells/answers

    Hi. Can you help. I use a standard IF formula to determine a holiday apartment rental cost i.e. I divide a weekly rental as a cost per day and this becomes multiplied by the no. of days of the rental.

    I want to change my spreadsheet and the IF function so that is becomes (in words): IF the rental days are either 7, 14, or 21 days (from a list) the answer selected is the rental cost for the appropraite period i.e. if the rental days are 7 it picks up the cost (from a list) of, say, 100; if the rental days are 14 it picks up the cost of 200; if the rental days are 21 it picks up the cost of 300.
    How can I enter the formula, using the IF function? Or, should I use some other functional formula?
    Last edited by balcony; 11-25-2011 at 04:02 AM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: IF function: extending to read multiple cells/answers

    Hello
    Welcome to the forum.
    Here is a sample on how to use the if and vlookup functions.
    HTH
    Attached Files Attached Files
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  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: IF function: extending to read multiple cells/answers

    Hi

    A way to do this, ii INDEX & MATCH functions

    See the attachement
    Attached Files Attached Files
    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
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: IF function: extending to read multiple cells/answers

    or maybe

    =LOOKUP(A1, {0,8,15,22}, {100,200,300,400})
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  5. #5
    Registered User
    Join Date
    11-25-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: IF function: extending to read multiple cells/answers

    Thanks peeps. I will try these possible solutions.

+ 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