Skip to content

Instantly share code, notes, and snippets.

View tanzilhuda's full-sized avatar

Tanzil Huda tanzilhuda

View GitHub Profile
1. Age Calculator: =DATEDIF(M2,TODAY(),"Y") & " Years, " & DATEDIF(M2,TODAY(),"YM") & " Months, " & DATEDIF(M2,TODAY(),"MD") & " Days"
=DATEDIF(M2,N2,"YM") & " Months, " & DATEDIF(M2,N2,"MD") & " Days"
Only Month
=DATEDIF(A2,B2,"M") [1st is small, 2nd is large Date]
Only Year
=DATEDIF(A2,B2,"Y") [1st is small, 2nd is large Date]
2. Count:
a. Counting Specific name: =COUNTIF(F2:F10, "MISSED")
@eyecandy91
eyecandy91 / Paid Membership Pro Plugin
Created August 10, 2016 08:54 — forked from emiliano1991/Paid Membership Pro Plugin
Remove or edit "now." “The price for membership is $0.00 now.” for Membership Levels
function my1_pmpro_level_cost_text($text, $level) {
// is livel is free do nothing
if (pmpro_isLevelFree($level)) {
return "";
// else is different to free do this
} else {
//the full string is : The price for membership is $0.00 now.
$restituisci = str_replace("now.","",$text); // in this case you can remove "now." in the full string
return $restituisci;