Computing.Net > Forums > Office Software > Excel If Function Help

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel If Function Help

Reply to Message Icon

Name: BattyChick
Date: November 12, 2008 at 10:34:28 Pacific
OS: Windows XP
CPU/Ram: 2.5Ghz
Product: HP
Comment:

Trying to create a formula and not winning.

I have to return a numeric value, based on a cell containing "Ongoing" or "Closed"

Essentially, if A1 = "ongoing" the formula needs to subtrackt the log date (A2) from today's date to return a value, however, if A1 = "Closed" the formula has to subtract A2 from A3

It's essentially to track incidents, by using the values to determine the escalation level, but we need to keep the historical data, hence the formula subtrackting A2 from A3 if A1 is "closed"

I hope someone can help, as my brain is about to explode.



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: November 12, 2008 at 16:14:42 Pacific
Reply:

Will A1 ever contain anything other than "Ongoing" or "Closed"?

If not, then you only need to check for one or the other:

=IF(A1="Ongoing",TODAY()-A2,A3-A2)

or

=IF(A1="Closed",A3-A2,TODAY()-A2)

If A1 could contain something other than those 2 values, then you need to create a formula that tells it what to do in that case:

=IF(A1="Closed",A3-A2,IF(A1="Ongoing",TODAY()-A2,"A1 Is Neither Closed Nor Ongoing"))


0

Response Number 2
Name: tmpatel6292
Date: January 7, 2009 at 01:48:19 Pacific
Reply:

i have colomn "A" number
0810001 to 0811000 =ASHOK
0850001 to 0850500 =BIREN
0850501 to 0851000 =MAHESH
0870001 to 0871000 = NIRAV

in colomn "B" which formula i use if any
nomber between above cell is marked.
thakor patel


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel If Function Help

Excel IF Statement Help Needed www.computing.net/answers/office/excel-if-statement-help-needed/7417.html

IF function in Access? www.computing.net/answers/office/if-function-in-access/6386.html

Excel: Sort Function Help www.computing.net/answers/office/excel-sort-function-help/5113.html