+ Reply to Thread
Results 1 to 3 of 3

IF, AND OR combination

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    IF, AND OR combination

    Hi all,

    I am trying to combine if function with two rules for thousands of rows that i cannot go through manually every time i run report and have updates.

    i need a date value from a one cell to be copied IF first cell value is "A4" out of 5 different variations and second cell is either A, B or C value out of 5
    variations and a blank.

    I was trying to use formula =IF(AND(A2="A4",OR(B2="B","C","A"),C2) but it gives me error and i am not sure what i am doing wrong.

    Please see attached example with manually calculated results.

    Thank you,
    Lina Va
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: IF, AND OR combination

    =IF(AND((A2="A4"),OR(B2="A",B2="B",B2="C")),C2,"") in D2 and copy down
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    02-18-2014
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    57

    Re: IF, AND OR combination

    Thank you very much for your help, Alan

    That function is wonderful! Works like a charm.

+ 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. [SOLVED] How to make the combination of numbers and total of that combination should be in range?
    By Darshan Shah in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 06-20-2020, 01:20 PM
  2. Combination help
    By roadapples in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2017, 01:00 PM
  3. [SOLVED] how many cell in a row that contain certain combination from a larger combination
    By system in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 11-17-2012, 03:04 PM
  4. ask about combination
    By nerrazurri in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2011, 09:24 PM
  5. Combination
    By Vignesh in forum Excel General
    Replies: 1
    Last Post: 09-16-2009, 10:17 AM
  6. Name Combination
    By sweetthing4luc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-17-2009, 01:08 PM
  7. [SOLVED] Possible Combination
    By Abdul in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2006, 08:30 AM

Tags for this Thread

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