+ Reply to Thread
Results 1 to 9 of 9

Vlookup 2 conditional format

  1. #1
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Vlookup 2 conditional format

    Hi, Please kindly help

    I Have data in C1:G4

    I need column B2:B12 will match the Item from column A & column C as long as column D housekeeping will take value from column G

    I need column B15:B25 will match the Item from column A & column C as long as column D non fb banquet will take value from column G

    Regards,
    Andy
    Attached Images Attached Images

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup 2 conditional format

    pls attach sample excel file with some more examples and desired result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Vlookup 2 conditional format

    Quote Originally Posted by nflsales View Post
    pls attach sample excel file with some more examples and desired result
    Ok, here it is , sheet before is before the formula vlookup,
    sheet after is what to be after using vlookup.thx
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup 2 conditional format

    B2=IFERROR(INDEX($G:$G,MIN(INDEX((($C$1:$C$4<>$A2)+($D$1:$D$4<>"Housekeeping"))*10^10+ROW($D$1:$D$4),0))),"")
    Please Login or Register  to view this content.
    B15=IFERROR(INDEX($G:$G,MIN(INDEX((($C$1:$C$4<>$A15)+($D$1:$D$4<>"Non FB Banquet"))*10^10+ROW($D$1:$D$4),0))),"")
    Please Login or Register  to view this content.
    OR
    b2=SUMIFS($G$1:$G$4,$C$1:$C$4,$A2,$D$1:$D$4,"Housekeeping")
    Please Login or Register  to view this content.
    B15=SUMIFS($G$1:$G$4,$C$1:$C$4,$A15,$D$1:$D$4,"Non FB Banquet")
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Vlookup 2 conditional format

    Quote Originally Posted by nflsales View Post
    B2=IFERROR(INDEX($G:$G,MIN(INDEX((($C$1:$C$4<>$A2)+($D$1:$D$4<>"Housekeeping"))*10^10+ROW($D$1:$D$4),0))),"")
    Please Login or Register  to view this content.
    B15=IFERROR(INDEX($G:$G,MIN(INDEX((($C$1:$C$4<>$A15)+($D$1:$D$4<>"Non FB Banquet"))*10^10+ROW($D$1:$D$4),0))),"")
    Please Login or Register  to view this content.
    OR
    b2=SUMIFS($G$1:$G$4,$C$1:$C$4,$A2,$D$1:$D$4,"Housekeeping")
    Please Login or Register  to view this content.
    B15=SUMIFS($G$1:$G$4,$C$1:$C$4,$A15,$D$1:$D$4,"Non FB Banquet")
    Please Login or Register  to view this content.
    Perfect, thx.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup 2 conditional format

    You are welcome and thanks for your feedback

  7. #7
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Vlookup 2 conditional format

    Quote Originally Posted by nflsales View Post
    You are welcome and thanks for your feedback
    Is it possible to sum more than 1 reference, for example housekeeping , housekeeping store, housekeeping food & housekeeping beverage?

    I attached the sample
    Attached Files Attached Files

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup 2 conditional format

    b2=SUMIFS($G$1:$G$7,$C$1:$C$7,$A2,$D$1:$D$7,"*HOUSEKEEPING*")
    Please Login or Register  to view this content.
    Try this and copy towards down

  9. #9
    Forum Contributor
    Join Date
    12-17-2012
    Location
    indonesia
    MS-Off Ver
    Excel 2019
    Posts
    170

    Re: Vlookup 2 conditional format

    Quote Originally Posted by nflsales View Post
    b2=SUMIFS($G$1:$G$7,$C$1:$C$7,$A2,$D$1:$D$7,"*HOUSEKEEPING*")
    Please Login or Register  to view this content.
    Try this and copy towards down
    Thx it works, what if reference no 2 is front office , reference no 3 is fb kitchen. Is it possible?

+ 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. Conditional format with search, vlookup and named Table
    By jed38 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2014, 04:18 PM
  2. [SOLVED] Display Conditional Format Colour in VLOOKUP Results
    By gtudor in forum Excel General
    Replies: 2
    Last Post: 03-20-2014, 05:58 AM
  3. Conditional format using formula that contains VLookup
    By anrichards22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2014, 03:14 AM
  4. [SOLVED] conditional format based whether VLOOKUP finds a value
    By merlyn45 in forum Excel General
    Replies: 3
    Last Post: 05-14-2012, 02:42 PM
  5. Conditional Format & Vlookup Error!
    By fugro in forum Excel General
    Replies: 12
    Last Post: 02-21-2011, 11:53 PM
  6. Using Vlookup in Conditional Format
    By melnikok in forum Excel General
    Replies: 4
    Last Post: 12-10-2008, 03:21 PM
  7. VLOOKUP in a conditional format
    By Russell Brown in forum Excel General
    Replies: 3
    Last Post: 08-03-2006, 02:15 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