+ Reply to Thread
Results 1 to 3 of 3

Help with comparing several columns and outputting a different result depending on column

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    Sydney, Australia
    MS-Off Ver
    365
    Posts
    52

    Help with comparing several columns and outputting a different result depending on column

    Hey all,

    I dont know if my heading makes sense at all but this is what I am trying/failing to accomplish...

    I have 5 columns that I want excel to check and then output a number based on the selection. The criteria in the 5 columns that I need is only that it is populated by something....

    Like this...

    A_____B_____C_____D_____E_____Result
    x______________________________1.25
    ______x_________________________1
    ______x_________________________1
    ___________________x____________.5

    Etc.....

    So the cell in the column could be anything.. an X or a 1 or anything.... So what I would like it to do is go... is A populated if yes output 1.25.... is B populated if yes output 1.... etc... but if 2 fields are X'd then it errors

    Any help is much appreciated!
    Last edited by Rhuumz; 09-04-2013 at 01:26 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help with comparing several columns and outputting a different result depending on col

    hi Rhuumz, assuming data in A2:E2, try this in F2
    =IF(COUNTA(A2:E2)=1,(6-MATCH(TRUE,INDEX(A2:E2<>"",),0))*0.25,"Error")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    Sydney, Australia
    MS-Off Ver
    365
    Posts
    52

    Re: Help with comparing several columns and outputting a different result depending on col

    Quote Originally Posted by benishiryo View Post
    hi Rhuumz, assuming data in A2:E2, try this in F2
    =IF(COUNTA(A2:E2)=1,(6-MATCH(TRUE,INDEX(A2:E2<>"",),0))*0.25,"Error")
    Hey Ben,

    Thanks for that. I think you have helped me with a few items in the past! Champion

    I plugged the formula in but it didnt seem to work. I will attach the file im working on

    MONTHLY TRACKING TEMPLATE.xlsx

    I hope I attached the correct one...

    The area I am referring to is the "Membership Term" columns needs to modify the "Value" column. Each "tick" under the membership columns I need to assign a different amount so All Clubs = 1.25 Home/Renewal=1 Flexi=.75 and part=.5

    Please ignore the bottom attachment I cant figure how to remove it from post
    Attached Files Attached Files

+ 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. [SOLVED] Outputting different values depending on which text value of multiple is found in a string
    By RichieAHB in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-15-2012, 12:15 PM
  2. Replies: 9
    Last Post: 08-13-2012, 08:00 AM
  3. Comparing columns then multiplying result by particular cell
    By raehippychick in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2008, 01:39 PM
  4. Comparing contents of two spreadsheets and outputting results to a
    By brx in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-16-2005, 10:06 PM
  5. display result depending upon values in another column
    By jonathanscary in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2005, 01:14 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