+ Reply to Thread
Results 1 to 5 of 5

When certain combination of cells have data flag up in another cell

  1. #1
    Registered User
    Join Date
    12-02-2011
    Location
    Edinburgh
    MS-Off Ver
    MS Office 365 (Word, Excel, Powerpoint, Publisher)
    Posts
    23

    When certain combination of cells have data flag up in another cell

    So we have 7 members of staff who update their absences on a spreadsheet but certain staff can't be off at the same time, so I want to find a way that, if certain cells have something in them it flags up in another cell

    So I have A1, B1, C1, D1, E1, F1 and G1. If B1 and D1 both have something in them then J1 states Bob & Keith Off, if A1, D1 and G1 have something in those cells then K1 states Anne, Keith and Rueben Off.

    If someone can give me the building block of the formulas then I can change them depending on the combination of the cells, the destination cell and the names.

    Thanks in advance

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: When certain combination of cells have data flag up in another cell

    It's almost always better to provide your actual file to get an actual solution, but since you asked for a conceptual solution, here is one.

    Values as displayed
    A
    B
    C
    D
    E
    F
    1
    Bob
    Keith
    Fred
    Anne
    Janice
    2
    x
    x
    Bob, Fred, Off
    Underlying formulas
    A
    B
    C
    D
    E
    F
    1
    Bob
    Keith
    Fred
    Anne
    Janice
    2
    x
    x
    =IF(A2<>"",A1&", ","")&IF(B2<>"",B1&", ","")&IF(C2<>"",C1&", ","")&IF(D2<>"",D1&", ","")&IF(E2<>"",E1&", ","")&IF(COUNTA(A2:E2)>1," Off")
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-02-2011
    Location
    Edinburgh
    MS-Off Ver
    MS Office 365 (Word, Excel, Powerpoint, Publisher)
    Posts
    23

    Re: When certain combination of cells have data flag up in another cell

    Thanks very much for your reply. I’ve taken what you suggested and tweaked it to meet the various permutations of staff but when one of the two cells has info in it, that name is displayed in the cell, what I need is only when both cells have data in them should both names appear in the cell. Can you advise how I would amend this so that happens?

    =IF(E89<>"",E1&" & ","")&IF(H89<>"",H1&" ","")

    Also when I’m trying to fill downwards, the E89 and H89 change to the next row but the E1 and H1 increase by one as well. Is there a way that you can downward fill so that only the row number updates?

    Thanks again.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: When certain combination of cells have data flag up in another cell

    So I have A1, B1, C1, D1, E1, F1 and G1
    What do you mean "both"?

    I'm not sure what you mean by permutations of staff. I provided one formula to cover everything.

    When filling downward, if you want to continue to refer to row 1 use $1. This is the most fundamental feature of Excel.

    You asked for building blocks for formulas. I fear we will go back and forth as you add more requirements. If you really need a complete solution, you need to provide a sample file.

  5. #5
    Forum Contributor Marvo's Avatar
    Join Date
    01-15-2009
    Location
    Northampton, England
    MS-Off Ver
    Excel 2021
    Posts
    990

    Re: When certain combination of cells have data flag up in another cell

    Quote Originally Posted by BigMcBen View Post
    Thanks very much for your reply. I’ve taken what you suggested and tweaked it to meet the various permutations of staff but when one of the two cells has info in it, that name is displayed in the cell, what I need is only when both cells have data in them should both names appear in the cell. Can you advise how I would amend this so that happens?

    =IF(E89<>"",E1&" & ","")&IF(H89<>"",H1&" ","")

    Also when I’m trying to fill downwards, the E89 and H89 change to the next row but the E1 and H1 increase by one as well. Is there a way that you can downward fill so that only the row number updates?

    Thanks again.
    I don't know much but I do know if you put a dollar sign between E1 & H1 so, E$1 & H$1 it wont change.

+ 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. If any index/match combination contains value, flag
    By JM45T3R5 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2020, 03:52 AM
  2. Replies: 3
    Last Post: 07-11-2019, 01:56 AM
  3. Formula to total cell values within a range determined by combination of other cells.
    By Victorthesecond in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2018, 01:17 PM
  4. Can Excel flag up when specific cells have data added ?
    By AndrewClarke in forum Excel General
    Replies: 5
    Last Post: 07-23-2018, 09:53 AM
  5. [SOLVED] searching combination of 2 cells based on a value of 1 cell
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-14-2018, 11:10 PM
  6. Enter value in cell based on value combination of two other cells
    By jobell in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2013, 10:40 AM
  7. Flag cells with data that ends with alpha characters
    By rfisher1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2011, 10:29 AM

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