+ Reply to Thread
Results 1 to 14 of 14

if formulas in an excel help

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    if formulas in an excel help

    Hi everyone,

    i need a formula that does the following:

    If column A contains a certain text and coulumn B countain certain text then display custom text in column B,
    In column A will be displayed a case number like OR-13-666456-JUD ... the formula should be if column A contains "JUD" and if Column B contains for example "Event" then return a certain Name (Alex for example).

    Could you please help me with this?

    Thanks in advance,
    Ovidiu

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: if formulas in an excel help

    May be this...

    Formula: copy to clipboard
    =IF(AND(ISNUMBER(SEARCH("JUD",A2)),ISNUMBER(SEARCH("Event",B2))),"Alex","")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    Hey,

    It's fantastic but i have 1000 rows .... how can i change the formula that it works without entering the formula for each row?
    something like this:

    =IF(AND(ISNUMBER(SEARCH("JUD",A1...A1000)),ISNUMBER(SEARCH("Event",B1...B1000))),"Alex",""

    and thanks for your quick response ... i really appreciate it!

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: if formulas in an excel help

    May be this...

    Formula: copy to clipboard
    =IF(AND(SUM(COUNTIF(A1:A1000,"*JUD*")),SUM(COUNTIF(B1:B1000,"*event*"))),"Alex","")

  5. #5
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    And where do i enter this formula so it applies to the entire column where i want to display the results (let's say column C)?

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: if formulas in an excel help

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).

  7. #7
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    that's the thing, i can't attach the excel because it contains confidential information :|

  8. #8
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    example.xlsx

    I've made and attached an example. What i want is:
    =IF(AND(SUM(COUNTIF(F2:F5,"*JUD*")),SUM(COUNTIF(G2:G5,"*event1*"))),"Alex","")
    AND

    =IF(AND(SUM(COUNTIF(F2:F5,"*JUD*")),SUM(COUNTIF(G2:G5,"*event2*"))),"Dan","")
    What i want to do when i insert another row of info or 100 rows is to automatically run the above code and display the name in Column I without having to insert the code for every row

    Thanks

  9. #9
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    anyone?
    no one can help me?

  10. #10
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: if formulas in an excel help

    Life's a spreadsheet, Excel!
    Say thanks, Click *

  11. #11
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    it seems i need an OR function between the above two functions ... how do i get both in the same cell so that if option 1 is available then return the value from the first function else return the value from the second function ...

  12. #12
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    I have something like this:
    =IF(AND(SUM(COUNTIF(F3:F6,"*JUD*")),SUM(COUNTIF(G3:G6,"*event1*"))),"Alex","")
    =IF(AND(SUM(COUNTIF(F3:F6,"*JUD*")),SUM(COUNTIF(G3:G6,"*event2*"))),"Dan","")
    =IF(AND(SUM(COUNTIF(F3:F6,"*JUD*")),SUM(COUNTIF(G3:G6,"*event3*"))),"Ben","")
    ...
    =IF(AND(SUM(COUNTIF(F3:F6,"*JUD*")),SUM(COUNTIF(G3:G6,"*eventx*"))),"Jack","")
    and i want all those function in one cell ... how do i make that?

    Thanks in advance

  13. #13
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: if formulas in an excel help

    How about..

    =IF(COUNTIF(F3:F6,"*JUD*"),IF(COUNTIF(G3:G6,"*event1*"),"Alex",IF(COUNTIF(G3:G6,"*event2*"),"Dan",IF(COUNTIF(G3:G6,"*event3*"),"Ben",IF(COUNTIF(G3:G6,"*event4*"),"Jack","")))),"")

  14. #14
    Registered User
    Join Date
    07-06-2013
    Location
    Timisoara, Romania
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: if formulas in an excel help

    Thaaanks !!! it works

    Now i have another dileme:

    =IF(COUNTIF(F2,"*JUD*"),IF(COUNTIF(G2,"*Step1*"),"Alex",IF(COUNTIF(G2,"*Step2*"),"Dan",IF(COUNTIF(G2,"*Step3*"),"Ben",IF(COUNTIF(G2,"*Step4*"),"Jack","")))),"")
    The above formula is the one that works for me, but i want to add more steps to alex ... how do i do that?

    =IF(COUNTIF(F2,"*JUD*"),IF(COUNTIF(G2,"*Step1* or *Step2* or Step3*"),"Alex",IF(COUNTIF(G2,"*Step2*"),"Dan",IF(COUNTIF(G2,"*Step3*"),"Ben",IF(COUNTIF(G2,"*Step4*"),"Jack","")))),"")
    how do i do that?

+ 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