My table in excel
=IF(ISBLANK(F2),"INPUT CHECK DUE",IF([#[CHECK DUE]]<=TODAY(),"FOR DEPOSIT",([#[CHECK DUE]]-TODAY()&" Day(s) remaining")))
and above is my code on status Column. Now I am trying to incorporate a function that would change the status from FOR DEPOSIT to DEPOSITED whenever the remarks column is filled out. Can anybody help or give idea please. Thank you.
Can't you just nest it inside another IF?
=IF(ISBLANK(F2),"INPUT CHECK DUE",IF([#[CHECK DUE]]<=TODAY(),IF([#[remarks]<>"","DEPOSITED","FOR DEPOSIT"),([#[CHECK DUE]]-TODAY()&" Day(s) remaining")))
i.e.
=IF(ISBLANK(F2),
"INPUT CHECK DUE",
IF([#[CHECK DUE]]<=TODAY(),
IF([#[remarks]<>"",
"DEPOSITED",
"FOR DEPOSIT"
),
([#[CHECK DUE]]-TODAY()&" Day(s) remaining")
)
)
Related
Spotfire rookie here.
i'm trying to populate a calculated column with a value from another calculated column.
The goal is to populate the [my_row_id] with [my_first_reading] and where [my_first_reading] is NULL.
The code below is populating all of the NULL's from [my_first_reading] as 1 as shown in the image below.
calculated column
the code for above is:
If([my_first_reading] is not NULL ,[my_first_reading],First([row_id] ))
Any help appreciated.
solved:
Parm
first_read
ID
start
1
1
read2
1
read3
1
start
2
2
read2
2
first_read:
case
when Find("start",[Parm])>0 then RowId()
else NULL
END
ID: LastValidBefore([first_read])
struggled with this for a while. found a similar approach on the forum.
let me know if you have a better solution. thanks!
Hy! Could someone help me out with this equation ? I looked onlyne for some solution but nothing could work :/
I am trying to figure it out how to calculate the following:
if anexe ( temporary higher work hours ) is greater then the contract hours, are equal to anex - worker hours( which i called uren )
I want so calculate a if statement more or less like this:
If Anexe > contract, is equal to Anex - uren
else Anexe < contract then contract - uren
Thank you for helping out already!
Above is a sample copy of your table with some random values between 0 and 100 filled in. I think the formula you want in cell D2 is:
=IF(C2>A2,C2-B2, IF(C2<=A2,A2-B2,0))
You can then copy it down to the cells below.
I am struggling hard with the logic here.. COUNTIFS with OR condition for the criteria is fairly simple:
=SUM(COUNTIFS(range,criteria range1,{criteria1,criteria1.1},criteria range2,criteria2))
Though.. what if I need to have an OR condition on the range itself?
I have two columns containing week number for "Attempt 1" and "Attempt 2", then one with status, so my formula looks like this:
=SUM(COUNTIFS(raw[week1],refToWeekNumberCell,raw[status],{"Success","Try again","Fail","Invalid"}))
..so I'm looking to count how many "Invalid" or "Valid" (all the other statuses) I have at any given week. If the status is "Invalid" there will only ever be one attempt. So checking against the column "Week 1" is enough. If I however want to check number of "Valid attempts", I will need to check against both the "Week1" and "Week2" column.. Can this be done somehow? Do I need a helper column, and if so, how do I formulate that one?
Sample data:
Raw table:
Week1
Week2
Status
7
7
Success
7
-
Success
7
-
Invalid
7
8
Success
7
8
Success
8
8
Success
Table seems to look good in preview, but not when posted, so:
Expected result: Count of Week 8 that are not Invalid either in column "Week 1" OR "Week2". Since Invalid always only have anything under "Week 1" then that is easy. But on row 5, the logic fails as I can only use one column as the range..
If it doesn't get much more complicated than two columns, you could use:
=SUM(IF((A2:A7=8)+(B2:B7=8)>=1,1,0)*(C2:C7<>"Invalid"))
The "+" is typically used to act as some sort of "Or" validation inside such boolean-structures. However, if you have more columns, the MMULT() variant is much easier to maintain.
=SUM(--(MMULT((A2:B7=8)*(C2:C7<>"Invalid"),{1,1})>0))
As you are using Excel365 then try-
=COUNTA(FILTER(C2:C7,MMULT((A2:B7=8)*(C2:C7<>"Invalid"),SEQUENCE(COLUMNS(A2:B2)))))
Hi I have data inside 3 columns:
A. Destination (es. LosAngeles)
B. Carrier (es. Ups)
C. Shipment Time (es. 4:00)
The time used is the 24h time without Am/Pm
I need to do a countif to know how many shipments we have at a specific time.
Tried with:
=COUNTIF(A1:A100,">="&TIME(8,30,0))-COUNTIF(A1:A100,">"&TIME(9,0,0)
Result 0
Tried with:
=COUNTIFS(A1:A100,">=8:30",A1:A100,"<=9:00")
Result 0
Tried with:
=COUNTIF('sheet1'!I:I,"<="&TIME(4, 0, 0))
Result 0
Any help?
Thank you in advance.
Try:
=COUNTIFS(A1:A100,">="&TIME(8,30,0),A1:A100,"<="&TIME(9,0,0))
The formula below was missing a closing bracket at the end
=COUNTIF(A1:A100,">="&TIME(8,30,0))-COUNTIF(A1:A100,">"&TIME(9,0,0))
column V is homework actual finish date
column W is required finish date
condition 1: if V is not blank, return value "ok"
condition 2: if "V is blank" and "W is blank", return value "ok"
condition 3: if "V is blank" and "W>=today()", return value "overdue"
I'm only able to combine condition 1 and 3 in my IF formula:
=IF(NOT(ISBLANK(V2)),"ok",IF(W2<=TODAY(),"over due","ok"))
Could anybody help me add condition two into my formula?
thanks for everybody's help/ im really new to stackoverflow.
and i have already learned something from everybody.
btw i made a typo in my condition 3, it should be "W<=today()" instead "W>=today()"
thanks
=if( and( not(isblank(v2)), not(isblank(w2)) ), "ok",
if( not(isblank(v2)), "ok",
if( and( isblank(v2), w2 >= today() ), "overdue", "ok" )
)
)
Paste this directly into the formula box and see how it works.
Let me see;
Your decision tree is missing one possible output; when V is blank, W !is blank and W<=today()
once you tell us what output means to you, we can easily help you.
Try this.
=IF(NOT(ISBLANK(V2)),"ok",IF(ISBLANK(W2), "ok",IF(AND(ISBLANK(V2),W2 >= TODAY()),"Over Due", "Error")))
As tip for future macros, try building them up a little at a time. For IF statements it can get tricky but this may help.
Write the first condition like this with 'Other Value' as a place holder.
=IF(NOT(ISBLANK(V2)),"ok","Other Value")
Once you have that bit working the way you like it then put in the false condition like this.
=IF(NOT(ISBLANK(V2)),"ok",IF(ISBLANK(W2),"ok","Other Value"))
And then finally add your last condition.
This is quite simple with one AND statement. First, redefine the logic you need for yourself: there are only two outcomes you care about: an assignment is unfinished and overdue, OR an assignment is finished/not yet due. So to write our IF statement, check only whether the assignment is unifinished and overdue. In any other case, the status will be the same.
Edit per comment
=IF(AND(ISBLANK(V1),W1<=TODAY(),W1>1),"overdue","ok")