Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Greg Bobak
 
Posts: n/a
Default IF/AND Formula seems to only be reading 1st part of formula

I have an IF/AND statement that seems to only be reading the first part of
the formula. I'm trying to get a value to categorize in one of the three
separate columns..
Scenario: The statements I created categorizes the age (value) 31, in the
category of "between 15 and 31 days" and in the category labeled "30 days"

Here is the scenario as laid-out in EXCEL€¦
Cell A1=Start Date 1/28/2005
Cell B1=End Date 2/25/2005
Cell-C1 = Formula to calculate AGE in days (=b1-a1)
Cell D1 = Formula to identify if cell c1 is between 0 - 15 days
(=IF((c1<16),"0-15","")
Cell E1 = Formula to identify if cell c1 is between 15 and 30 days
(=IF(AND(c115,c1<31),"16-30","")
Cell F1 = Formula to identify if cell c1 is 30 days (=IF((X230),"31+","")

Why is it triggering cell E1 and F1. It should only appear in F1 because it
is 30 days.
Let me know Thanks-Greg

  #2   Report Post  
CLR
 
Posts: n/a
Default

Besides the typeo(?) of X2 in the F1 formula............the whole thing
seems to work for me in XL2k........except 1/28/05 - 2/25/05 is 28 days, not
30, so it lights up E1 like it's supposed to........huh?

Vaya con Dios,
Chuck, CABGx3




"Greg Bobak" wrote in message
...
I have an IF/AND statement that seems to only be reading the first part of
the formula. I'm trying to get a value to categorize in one of the three
separate columns..
Scenario: The statements I created categorizes the age (value) 31, in the
category of "between 15 and 31 days" and in the category labeled "30

days"

Here is the scenario as laid-out in EXCEL.
Cell A1=Start Date 1/28/2005
Cell B1=End Date 2/25/2005
Cell-C1 = Formula to calculate AGE in days (=b1-a1)
Cell D1 = Formula to identify if cell c1 is between 0 - 15 days
(=IF((c1<16),"0-15","")
Cell E1 = Formula to identify if cell c1 is between 15 and 30 days
(=IF(AND(c115,c1<31),"16-30","")
Cell F1 = Formula to identify if cell c1 is 30 days

(=IF((X230),"31+","")

Why is it triggering cell E1 and F1. It should only appear in F1 because

it
is 30 days.
Let me know Thanks-Greg



  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Wed, 2 Mar 2005 16:55:06 -0800, "Greg Bobak"
wrote:

I have an IF/AND statement that seems to only be reading the first part of
the formula. I'm trying to get a value to categorize in one of the three
separate columns..
Scenario: The statements I created categorizes the age (value) 31, in the
category of "between 15 and 31 days" and in the category labeled "30 days"

Here is the scenario as laid-out in EXCEL…
Cell A1=Start Date 1/28/2005
Cell B1=End Date 2/25/2005
Cell-C1 = Formula to calculate AGE in days (=b1-a1)
Cell D1 = Formula to identify if cell c1 is between 0 - 15 days
(=IF((c1<16),"0-15","")
Cell E1 = Formula to identify if cell c1 is between 15 and 30 days
(=IF(AND(c115,c1<31),"16-30","")
Cell F1 = Formula to identify if cell c1 is 30 days (=IF((X230),"31+","")

Why is it triggering cell E1 and F1. It should only appear in F1 because it
is 30 days.
Let me know Thanks-Greg


Last I checked, 28 (b1-a1) was less than 30, so it should trigger in E1.

Also, your formula in F1 is checking X2, and you do not report the contents of
that cell, but likely it has a value 30


--ron
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
Modification of Part Number (Revised) Tiziano Excel Discussion (Misc queries) 4 February 27th 05 12:37 AM
Array not working correctly Returns FALSE on second part aaronm49 Excel Discussion (Misc queries) 1 February 11th 05 01:07 AM
Part Number/Qty Consolidations [email protected] Excel Discussion (Misc queries) 2 February 6th 05 09:21 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 5 October 30th 04 12:35 PM
Formula for Extracting Alphabetic Part of a Product Code ob3ron02 Excel Worksheet Functions 1 October 29th 04 06:07 PM


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

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

About Us

"It's about Microsoft Excel"