Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2016, 10:33 PM
Skye123456 Skye123456 is offline If/AND/OR Formula for 3 way solution Windows XP If/AND/OR Formula for 3 way solution Office 2013
Novice
If/AND/OR Formula for 3 way solution
 
Join Date: Jun 2016
Posts: 5
Skye123456 is on a distinguished road
Default If/AND/OR Formula for 3 way solution

Please refer to attached image. I want the cell titled "current status" aka column D to have 3 rules. I can't get the formula right. This is what I've used:



=IF(AND(B2>0,"Closed","Open"), OR(E2>0,"","open"))

* Column B's cells references another cell on a different tab which is a date. If there is date(B2>0), then D2 equal blank, but if there is a date, D2 equals open. However,

*E Column's cells references a date too. If E2 is blank, then E2 is open. If there is a date, then E2 = closed.

Basically I have upload a picture from excel that has three rows highlighted demonstrating the three scenarios. I don't know if this is all possible or not though.
Attached Images
File Type: jpg Excel 1.JPG (70.2 KB, 25 views)
Reply With Quote
  #2  
Old 06-27-2016, 11:32 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If/AND/OR Formula for 3 way solution Windows 7 64bit If/AND/OR Formula for 3 way solution Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
If there is date(B2>0), then D2 equal blank, but if there is a date, D2 equals open
This condition is contradictory
Quote:
E Column's cells references a date too. If E2 is blank, then E2 is open. If there is a date, then E2 = closed.
You mean if E2 blank D2="open", (not E2)?
At first glance
=IF(B2="","",IF(E2="","open","closed"))
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 06-27-2016, 11:40 PM
Skye123456 Skye123456 is offline If/AND/OR Formula for 3 way solution Windows XP If/AND/OR Formula for 3 way solution Office 2013
Novice
If/AND/OR Formula for 3 way solution
 
Join Date: Jun 2016
Posts: 5
Skye123456 is on a distinguished road
Default

Yes sorry if E2 is blank.

Your formula half works, but when B2 is blank (no date) D2 says closed instead it should be blank too.

I really appreciate your help though.
Reply With Quote
  #4  
Old 06-27-2016, 11:53 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If/AND/OR Formula for 3 way solution Windows 7 64bit If/AND/OR Formula for 3 way solution Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Then B2 is not a real empty cell

As you can see, the first test is to check if B2="" and if so return "", then do nothing else
Perhaps it is not empty but blank ( check with the ISBLANK formula) or contains a hidden value
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 06-28-2016, 11:19 PM
Skye123456 Skye123456 is offline If/AND/OR Formula for 3 way solution Windows XP If/AND/OR Formula for 3 way solution Office 2013
Novice
If/AND/OR Formula for 3 way solution
 
Join Date: Jun 2016
Posts: 5
Skye123456 is on a distinguished road
Default

No B2 isn't an empty cell, nor is E2. Both of those cells reference other cells in another tab therefore they have a formula in them. But I need to keep the formula. Your formula works perfectly if they were blank. The idea is the have the spreadsheet completely populate itself from the different tabs.
Reply With Quote
  #6  
Old 06-28-2016, 11:24 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If/AND/OR Formula for 3 way solution Windows 7 64bit If/AND/OR Formula for 3 way solution Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Please post a sample file(no pics please) we are going in circles here
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #7  
Old 06-28-2016, 11:30 PM
Skye123456 Skye123456 is offline If/AND/OR Formula for 3 way solution Windows XP If/AND/OR Formula for 3 way solution Office 2013
Novice
If/AND/OR Formula for 3 way solution
 
Join Date: Jun 2016
Posts: 5
Skye123456 is on a distinguished road
Default

A sample is attached.
Attached Files
File Type: xlsx sample.xlsx (56.5 KB, 9 views)
Reply With Quote
  #8  
Old 06-29-2016, 12:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If/AND/OR Formula for 3 way solution Windows 7 64bit If/AND/OR Formula for 3 way solution Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,780
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

As you are referring to merged cells in col B ( and maybe others), results can be unpredictable.
Merged cells should be eliminated , being the worst thing ( well almost..) MS invented
When this is done try =IF(B2=0,0,IF(E2="","open","closed"))
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #9  
Old 06-29-2016, 12:54 AM
Skye123456 Skye123456 is offline If/AND/OR Formula for 3 way solution Windows XP If/AND/OR Formula for 3 way solution Office 2013
Novice
If/AND/OR Formula for 3 way solution
 
Join Date: Jun 2016
Posts: 5
Skye123456 is on a distinguished road
Default

=IF(B10<1,"",IF(E10>1,"Closed","Open")) worked it out but thanks for all your help
Reply With Quote
Reply

Tags
difficult, formula



Similar Threads
Thread Thread Starter Forum Replies Last Post
If/AND/OR Formula for 3 way solution Is there a solution/addin? mystik Outlook 1 03-11-2016 12:09 AM
Solver Transportation solution Normie Excel Programming 3 12-02-2015 11:32 AM
Project solution kevin316 Office 2 09-18-2011 09:32 AM
If/AND/OR Formula for 3 way solution Please help me with an easier solution! Inquisitor Word 1 06-26-2011 01:01 AM
Visio Orgchart Solution dmcgimpsey Visio 0 11-08-2005 10:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:38 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft