+ Reply to Thread
Results 1 to 5 of 5

Combination of IF conditions

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Exclamation Combination of IF conditions

    Hi, all

    I have a sheet where I would like to insert conditions in the worksheet. I'm not sure how to combine conditions.

    I have three conditions:

    1. If LEN < 179 in one cell, it will equals to 1 or else it will equals to 2
    2. If the value in cell is 0, it will equals to 0.5
    3. If the cell is empty, no need to sum it up

    The equivalences will have to sum up. These conditions will have to be applied to A2:A6. Is it possible to create a formula? Hereby I attached an example of Excel file.

    Thanks in advance for the help!
    Attached Files Attached Files
    Last edited by ell_; 01-17-2018 at 03:43 AM.

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

    Re: Combination of IF conditions

    hi there. you didn't input what you are expecting to see. you may look at my signature and come up with an illustration if i got it wrong. my guess is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A2 = 2
    A4 = 0.5
    A5 = 1
    total = 3.5

    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
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Combination of IF conditions

    Hi, Benishiryo

    Thank you so much! It is exactly like I wanted, but if I want to change values, can I know how? i.e. :

    1. If LEN < 179 in one cell, it will equals to 0.8 or else it will equals to 1.8
    2. If the value in cell is 0, it will equals to 0.5
    3. If the cell is empty, no need to sum it up

  4. #4
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Combination of IF conditions

    Oh, nevermind. Got the concept. Thanks again!

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Combination of IF conditions

    or can try
    =SUMPRODUCT(LOOKUP(LEN(A2:A6),{0,1,180},{0,1,2})-(A2:A6<>"")*(A2:A6=0)*0.5)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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] Help combining macros to delete rows on conditions and add data into cells on conditions
    By JayJayGC in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-03-2017, 10:14 AM
  2. [SOLVED] Advanced Filter Between Two Columns all OR conditions (4 conditions)
    By nobodyukno in forum Excel General
    Replies: 2
    Last Post: 02-16-2017, 01:13 PM
  3. Replies: 2
    Last Post: 01-14-2016, 03:53 PM
  4. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  5. [SOLVED] how many cell in a row that contain certain combination from a larger combination
    By system in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-17-2012, 03:04 PM
  6. [SOLVED] Text results with two conditions (lookup with two conditions)
    By Davzx in forum Excel General
    Replies: 8
    Last Post: 05-25-2012, 03:08 AM
  7. Replies: 7
    Last Post: 10-15-2011, 05:19 PM

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