+ Reply to Thread
Results 1 to 14 of 14

Conditions in 3 cells show true or false.

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Conditions in 3 cells show true or false.

    Hi. I normally do macros so i have to admit formula is not my strong skill. I have posted for some if conditions which was not solved. It still make errors, so i was thinking maybe your formula experts could solve it for me. I know some times formula can do some which is hard in macros. I can run a macro if a cell show true example.
    Here is my conditions i would like to solve.

    In cell 1. If cell B21 have the word "unable to contact." and same time if cell B23 are empty show True.
    In cell 2. If cell B21 have the word " Only want mail." and same time cell cell B 13 is empty show True.

    And now the very hard one i think.

    In cell 3. If cell B21 have the word "Lead to validate." and same time one or more of these are empty Cell B27, B29, D27,D29 or textbox1 show true
    remember its the word "Lead to validate." and then one or more of the 4 cells and the textbox1 empty

    This below little related conditions. To calculate in a cell.
    If these words in cell B21


    Only want mail. plus +10 to cell D23
    Company decision abroad. Minus -20 to cell D23
    Not interested. Minus -10 to cell D23
    Outsourching. Minus -20 to cell D23
    Lead to be nurtured. Plus +50 to cell D23
    Lead to validate. Plus +100 to cell D23.

    I hope some could solve this and as i said formulas are not what i am best to. Please have a look.
    Sincerely
    Abjac

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    Does your user profile need updating?

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Conditions in 3 cells show true or false.

    Hi Sorry did not think it was necessary her with the formulas but of course i just uploaded a test sheet with relevant cell i talk about in the first message.-
    Thanks
    Sincerely
    Abjac
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    Sorry - I don't see a mock-up of expected results, only empty cells. Please provide at least ONE worked example in the sample workbook to show what you want. Thanks.

  5. #5
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Conditions in 3 cells show true or false.

    HI Ok i put the conditions in the sheet now so you can see what i would like to have of result and also the conditions for the formulas-. Hope its quite clear now.
    Thanks
    Abjac
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    OK:

    =AND(B21=" Unable to contact.",B23="")

    =AND(B21=" Only want mail. ",D13="")

    =AND(B21=" Lead to validate. ",OR(B27="",B27="",D27="",D29=""))

    You cannot test the contents of a textbox in a formula - why can't this be a cell instead?

  7. #7
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Conditions in 3 cells show true or false.

    Hi AliGW.
    The coded are working perfect just little error B27 2 times changed so they are working perfect.
    I would like to have the textbox1 of course. I cant change it in the real workbook it is a textbox where you can write into.
    But if it cant be done in formula then its like that of course.
    The others are working brilliant. But wish i could have the textbox hehe
    What about the calculation part in cell D23. Its also related to the different text in cell B21
    Any idea how to do this. ?
    Thanks
    Abjac

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    Using a lookup table (with leading and trailing spaces removed):

    Excel 2016 (Windows) 32 bit
    R
    S
    5
    Unable to contact.
    6
    Only want mail.
    10
    7
    Account update.
    8
    Company decision abroad.
    -20
    9
    Not interested.
    -10
    10
    Outsourching.
    -20
    11
    Account out of target.
    12
    Liquidation or Shut down.
    13
    Lead to be nurtured.
    50
    14
    Lead to validate.
    100
    Sheet: Sheet1

    =IF(VLOOKUP(B21,$R$5:$S$14,2,0)=0,"",VLOOKUP(B21,$R$5:$S$14,2,0))

    Then:

    =AND(B21="Unable to contact.",B23="")

    =AND(B21="Only want mail.",D13="")

    =AND(B21="Lead to validate.",OR(B27="",B27="",D27="",D29=""))

    Again, you need to rethink the textbox, otherwise you are going to have to go down the VBA route.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Conditions in 3 cells show true or false.

    Hi AliGW.
    Thats was actually true i removed them and also the dot so it should be ok now. here is the test sheet with the updates.
    Sincerely
    Abjac
    Attached Files Attached Files

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    See post #8.

  11. #11
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Conditions in 3 cells show true or false.

    Hi AliGW .
    it seems to be working good but an important thing is it dont calculate in the cell . Maybe i did not tell that clearly but i need it like this.
    So if cell have 100 before start and i go to lead to validate it should 200 after. If after that go to not interested. it should take -10 away so the number there now 190 and so on.
    Sorry i think maybe not said this clearly enough.
    But have a look please.
    Sincerely
    Abjac

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    OK - in that case, you are going to need VBA. A cumulative total like that is NOT possible with formulae.

    As this second query is very different to the original thread title (that bit is solved), I suggest you open a NEW thread in the VBA section with a title that reflects the second query and the cumulative total that you wish to instigate.

    This thread should be marked as SOLVED.

    Thanks.

  13. #13
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Conditions in 3 cells show true or false.

    Hi AliGW .
    Ok i will do that . I just thougt was possible with formula to calculate like this in a cell. Thanks alot for your help. Really great
    Sincerely
    Abjac

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,766

    Re: Conditions in 3 cells show true or false.

    No, it isn't, I am afraid. A formula cannot remember previous entries in the same cell.

+ 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. Return TRUE or FALSE if conditions met
    By mochte12 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2020, 09:08 AM
  2. Replies: 1
    Last Post: 12-19-2016, 01:26 PM
  3. [SOLVED] Check if cells An and Bn have specific content and show true/false in Cn
    By iyoossaev in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-02-2015, 06:36 AM
  4. True/False for Multiple conditions and formats in a range of cells
    By Vatoemperor in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-13-2015, 03:51 PM
  5. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  6. [SOLVED] How to get TRUE or FALSE based on 2 conditions?
    By vcl_over in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-02-2013, 11:51 AM
  7. how to use true or false conditions
    By buff in forum Excel General
    Replies: 2
    Last Post: 05-21-2006, 06:40 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