+ Reply to Thread
Results 1 to 8 of 8

Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

  1. #1
    Registered User
    Join Date
    06-18-2018
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    3

    Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    I am trying to come up with an if statement if any row in a table has 3 cells matching the 3 set text plus if a 4th cell divided by a 5th cell is greater than 10% then "Y" otherwise "N".
    Below is the formula which works if looking at a single row but I want to know if I get a single "Y" in the attached spreadsheet

    Sorry cant seem to attach the worksheet


    '=IF(AND(K24&B24&D24=$A$26&"Current"&"State: Not",((G24/F24)>10%)),"Y","N")'
    Attached Files Attached Files
    Last edited by cancan64; 06-18-2018 at 01:04 AM. Reason: hopefully added attachment

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    To attach;

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    A quick cursory glance - I think you are trying to use the & as an AND within your statement. & concatenates the contents of cells together.

  4. #4
    Registered User
    Join Date
    06-18-2018
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    3

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    I basically want to know if any row in the workbook contains x, y z and if cell BB/AA is more than 10% then "investigate otherwise all is good.
    I can do it in 2 formulas as in cell CC=if((BB/AA)>10%)),"Y","N" and then have a lookup the worksheet matching X,Y,Z,CC but trying for a single formula first

  5. #5
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    I don't understand what you mean by AA, BB and CC.

    In your attachment maybe mock-up what you want to see as a result.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    try IF(SUMPRODUCT(conditions_here)=1,Yes,No)

    =1 is not required, it's just for clarify
    Last edited by sandy666; 06-18-2018 at 01:22 AM.

  7. #7
    Registered User
    Join Date
    06-18-2018
    Location
    Auckland
    MS-Off Ver
    2013
    Posts
    3

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    Thanks Sandy, Sumproduct worked

    =IF(SUMPRODUCT((B3:B24=B24)*(D3:D24=D24)*(K3:K24=A26)*((G3:G24/F3:F24)>10%))>=1,"Yes","")
    Last edited by cancan64; 06-18-2018 at 06:05 PM. Reason: correct formula

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Search worksheet and If a row has 3 cells = text plus cell/cell>10% formula then "Y"

    You are welcome

    Read me

    Try to avoid joining to my Black List by doing this below

    If that takes care of your original question, & to say Thanks and for better Motivation, please
    1. click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
      then
    2. select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.

+ 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: 4
    Last Post: 06-11-2017, 02:03 PM
  2. Search "text", In that row goto Col H copy cell, go to move Col K paste cell Loop to end
    By RobertVaughan in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-20-2017, 09:59 PM
  3. [SOLVED] if in worksheet "test1" is in cell G2 to G1000 an entry"share sale" copy the row new sheet
    By torti111 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-22-2017, 12:28 PM
  4. "Worksheet change" not changing cell on other sheet to match target cell "fill".
    By Ochimus in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-02-2015, 12:02 PM
  5. Replies: 3
    Last Post: 06-05-2015, 01:55 PM
  6. [SOLVED] If(Search to say "YES" or "NO" if cell contains specific text
    By Alt= in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2014, 03:23 PM
  7. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 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