+ Reply to Thread
Results 1 to 2 of 2

Using the IF function

  1. #1
    Registered User
    Join Date
    03-14-2014
    Location
    Aldershot
    MS-Off Ver
    Excel 2013
    Posts
    27

    Using the IF function

    I have a spreadsheet where a column of cells can have 4 different entries - In e.g. AC3 I want to say if the info in A3 says UK put £550.00 if it says BAG put £450.00 if it says CIV put £850.00 and if it says RN put £850.00 - grateful for any help, thanks in advance

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Using the IF function

    This is really a better fit for a CASE function than an IF function.

    Well, there's no built-in CASE, so just simulate it with INDEX(MATCH) instead.

    =INDEX(output_range, MATCH(value, input_range, 0))

    Then you can either build a table of input+output ranges for it to look at (probably best solution), or just imbed the ranges as arrays inside the function like:

    A3 =INDEX({550, 450, 850, 850}, MATCH(AC3, {"UK", "BAG", "CIV", "RN"}, 0))
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  2. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  3. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM

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