+ Reply to Thread
Results 1 to 7 of 7

If condition for multi selection

  1. #1
    Registered User
    Join Date
    02-10-2017
    Location
    IRAQ
    MS-Off Ver
    2016
    Posts
    37

    Unhappy If condition for multi selection

    hello every one
    I just want to share with you my small project I am thinking how I can provide solution for it

    as you see in the attachments 2 pictures for 2 work sheets in same work book

    WS2.JPG

    WS1.JPG

    what I want to do to fill WS1 with information that based in WS2 but how ?

    so the condition that I am trying to do it is if (T4) in WS2 = BGC and if (G4) in WS2 = 24:00 then fill the raw 3 in WS1 with the information in raw4 in WS2 and if the 24:00 is not available select the less than 24:00 and fill the raw with information and it keep looping for 16 cell or raw.
    Last edited by alaboudy; 02-22-2017 at 06:51 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: If condition for multi selection

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-10-2017
    Location
    IRAQ
    MS-Off Ver
    2016
    Posts
    37

    Re: If condition for multi selection

    thank you
    the example in the attachment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-10-2017
    Location
    IRAQ
    MS-Off Ver
    2016
    Posts
    37

    Re: If condition for multi selection

    anyone????????

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,534

    Re: If condition for multi selection

    What about a Pivot Table?
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    02-10-2017
    Location
    IRAQ
    MS-Off Ver
    2016
    Posts
    37

    Re: If condition for multi selection

    Quote Originally Posted by JeteMc View Post
    What about a Pivot Table?
    Let us know if you have any questions.
    thank you JeteMc for your replay
    I know how to do it with PT but I want to use if function , because every day I have different data I paste it in sheet 1 and want in sheet 2 to analyse it by code and hours.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: If condition for multi selection

    I do not understand what you mean by "and if the 24:00 is not available select the less than 24:00 and fill the raw with information and it keep looping for 16 cell or raw
    . Unfortunately, you did not address point 2 in my earlier post (which was even in BOLD to draw your attention to it!!!)

    However, does this array formula, copied across and down, do what you want:

    =IFERROR(INDEX(Sheet2!E:E,SMALL(IF(Sheet2!$I$2:$I$34="BGC",ROW()),ROWS(D$2:D6))),"")

    If this is not what you want, please explain again AND INCLUDE YOUR EXPECTED RESULT.

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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. multi condition value 1 or value 2 or...value n
    By erkamu in forum Excel General
    Replies: 6
    Last Post: 02-09-2017, 07:21 AM
  2. [SOLVED] Userform Multi-Select Listbox Selection Condition to unhide Frame and controls
    By pjbassdc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2016, 10:05 AM
  3. multi selection box
    By 1legin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-04-2013, 02:12 AM
  4. Multi select Listbox Items selection based on other Listbox item selection.
    By srinivassathi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-20-2011, 05:53 AM
  5. multi condition format? lookup and date condition valid for.
    By D_Rennie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2009, 11:37 AM
  6. Multi Condition SUM
    By newone210 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-20-2006, 01:18 PM
  7. [SOLVED] Multi-condition vlookup
    By Hobbeson in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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