+ Reply to Thread
Results 1 to 5 of 5

Using IF AND OR in a complex formula to find blank cells.

  1. #1
    Registered User
    Join Date
    04-20-2015
    Location
    Leeds, England
    MS-Off Ver
    2007
    Posts
    3

    Using IF AND OR in a complex formula to find blank cells.

    Hello All

    I am working with IF AND OR in my formula but continually get an error. The challenge
    Column A has results of Q1, Q2, Q3 or Q4 to represents periods in a year.

    If Column A has a result of Q1, columns B cannot be blank, otherwise it is an error - this I have worked out using =IF(AND(A2="Q1",B2=""),"Error","")

    i am struggling to expand the Formula, If Column A has a result of Q2, column B should be blank, column C alone, C and D or C,D and E has to have information in that cell or it is an error message.

    So If Column A shows Q3 to have a pass result Column A and B needs to be Blank and column C alone or C and D needs to be populated with information, all other columns populated is an error
    This is the same for resut of Q4, Columns A,B and C, needs to be blank and Column D populated. Any other inputs should have an error


    I really hope someone can help as I have been trying to do this for the last 3 days

  2. #2
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Using IF AND OR in a complex formula to find blank cells.

    Can you upload a sample showing the expected results?

  3. #3
    Registered User
    Join Date
    04-20-2015
    Location
    Leeds, England
    MS-Off Ver
    2007
    Posts
    3

    Re: Using IF AND OR in a complex formula to find blank cells.

    Thank you. Below is the results I am trying to get.

    Qtr inv1 inv2 inv3 inv4
    Q1 Pass Pass Pass Pass
    Q2 Error Pass Pass Pass
    Q3 Error Error Pass Pass
    Q4 Error Error Error Pass


    Rationale
    Essentially I an trying to identify errors. Q1 represents the quarters of a year, so Q1 is January 1 to March 31. And if we plan to complete work for a customer during that period we should issue an invoice in inv (phase) 1, and subsequent phases if there is a payment plan

    If the customer's work is scheduled to completed in Q2, April 1 to June 30th. We should not have payment between Jan 1 and March 31, as a customer will not pay before the work is completed. Hence the input error should be highlighted.


    Thank you

  4. #4
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Using IF AND OR in a complex formula to find blank cells.

    You could use a vlookup.
    You need to create a list of the combinations and their outcomes then use =VLOOKUP(A8&$B$7,Lookup,2,FALSE)
    See attached

    Windy
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-20-2015
    Location
    Leeds, England
    MS-Off Ver
    2007
    Posts
    3

    Re: Using IF AND OR in a complex formula to find blank cells.

    Thank you so much for your help with this, I think I am getting there, but want to ask will this work if the cells are already populated with information that is not pass or error, as the cells will have a numerical value. I have added a sample of how it will really look rather than the pass/error outcome that I want.

    Once you have seen the table if the input as such green = pass result and yellow = error
    LadyCx2 reply.xlsx

+ 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] Formula to find the last cell value in a column range that contains blank cells
    By Bonzopookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-29-2014, 07:50 PM
  2. [SOLVED] Find first non-blank cell after a group of blanks copy offset cells, find next blank, loop
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-21-2012, 06:11 AM
  3. [SOLVED] Find complex name in range and check off matching cells
    By Durarara in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-07-2012, 01:54 PM
  4. Find a blank cell and calculate the average of all cells above till the next blank
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2012, 11:51 AM
  5. [SOLVED] complex fomula: counting cells that are blank
    By shmurphing in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2005, 06:06 PM

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