Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
roy.okinawa
 
Posts: n/a
Default Multiple Functions In One Column

This may be a shot in the dark and will be a long formula, but here it goes:

I have multiple columns that I want to condense to one. Therefore, I want
column B to show current status of a work order based on the following:

If column V is blank, column B shows €śOpen€ť.

If column V is filled (date) and column J K, column B shows €śComplete/No€ť.
If column J <= K, column B shows €śComplete/Yes€ť.

Now even though column V is filled, once column AE is filled (date) and
column J K, column B shows €śClosed/No€ť. If column J <= K, column B shows
€śClosed/Yes€ť.

If column AC and AE are filled (date), column B shows €śClosed/BER€ť.

If column AD and AE are filled (date), column B shows €śCanceled€ť.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Multiple Functions In One Column

Try this out in cell B2 (assumes other data is on row 2):

=IF(V2="","Open",
IF(AND(AD2<"",AE2<""),"Cancelled",
IF(AND(AC2<"",AE2<""),"Closed/BER",
IF(AE2<"",
IF(J2K2,"Closed/No","Closed/Yes"),
IF(J2K2,"Complete/No","Complete/Yes")))))

This is all one formula - I've just split it at each IF to make it
easier to read. It doesn't test for dates specifically, just whether
the cells are empty or not. Copy down if it meets the criteria.

Pete

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
roy.okinawa
 
Posts: n/a
Default Multiple Functions In One Column

Thanks. That was exactly what I needed.

One more thing I need though, I forgot to add that K may have N/A entered
sometimes. This would result in a "Closed/NA" or "Completed/NA" in B2.

Can you help one more time?

"Pete" wrote:

Try this out in cell B2 (assumes other data is on row 2):

=IF(V2="","Open",
IF(AND(AD2<"",AE2<""),"Cancelled",
IF(AND(AC2<"",AE2<""),"Closed/BER",
IF(AE2<"",
IF(J2K2,"Closed/No","Closed/Yes"),
IF(J2K2,"Complete/No","Complete/Yes")))))

This is all one formula - I've just split it at each IF to make it
easier to read. It doesn't test for dates specifically, just whether
the cells are empty or not. Copy down if it meets the criteria.

Pete


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Multiple Functions In One Column

Try this out in B2 (all one formula, as before):

=IF(V2="","Open",
IF(AND(AD2<"",AE2<""),"Cancelled",
IF(AND(AC2<"",AE2<""),"Closed/BER",
IF(AE2<"",
IF(K2="N/A","Closed/NA",
IF(J2K2,"Closed/No","Closed/Yes")),
IF(K2="N/A","Completed/NA",
IF(J2K2,"Completed/No","Completed/Yes"))))))

It might be better to insert a new column C (assuming you are using C
at the moment), then you can split this formula so that the words
"Open", "Cancelled", "Closed" and "Completed" appear in column B as
appropriate and the words "BER", "NA", "No" and "Yes" appear in column
C (right aligned).

Pete

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
roy.okinawa
 
Posts: n/a
Default Multiple Functions In One Column

Thanks again and for the recommendation.

"Pete" wrote:

Try this out in B2 (all one formula, as before):

=IF(V2="","Open",
IF(AND(AD2<"",AE2<""),"Cancelled",
IF(AND(AC2<"",AE2<""),"Closed/BER",
IF(AE2<"",
IF(K2="N/A","Closed/NA",
IF(J2K2,"Closed/No","Closed/Yes")),
IF(K2="N/A","Completed/NA",
IF(J2K2,"Completed/No","Completed/Yes"))))))

It might be better to insert a new column C (assuming you are using C
at the moment), then you can split this formula so that the words
"Open", "Cancelled", "Closed" and "Completed" appear in column B as
appropriate and the words "BER", "NA", "No" and "Yes" appear in column
C (right aligned).

Pete


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a single vertical array from multiple column arrays Bryan Excel Worksheet Functions 2 December 10th 05 07:12 PM
IF/AND/OR/DATEIF Issue...sorry...long post... EDSTAFF Excel Worksheet Functions 1 November 10th 05 12:28 AM
Running total w/2 columns - Excel Anna / Ideal Excel Worksheet Functions 14 August 10th 05 04:28 PM
Formula to compare multiple rows values based on another column? Murph Excel Worksheet Functions 4 February 21st 05 02:44 AM
Can I set a filter for a merged column across multiple rows and o. Martin Excel Worksheet Functions 2 November 25th 04 01:01 PM


All times are GMT +1. The time now is 07:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"