I have installed the ExcelFunctionsR package in R and am trying to use the MINIFS formula, and am coming across a particular issue when trying to reference a specific cell in my formula. The excel formula can be seen in the image below.
I have tried out the R version of it, and it runs fine, but I'm trying to get the "[@[Account Name]]" part of the excel formula to work all the way down my column as it does in excel. I am trying to find the "First Meeting Date" for each Account Name. I already know how to add in the column for "First Meeting Date". Below is where I'm currently stuck in my R formula.
Example <- data.frame(stringsAsFactors = FALSE, Date = c("8/4/2020",
"11/26/2019", "12/4/2019", "1/29/2020", "2/5/2020"), Account.Name = c("Apple",
"NRG Energy", "Principal Financial Group", "Willis Towers Watson",
"Salesforce.com"), Enterprise.Activity.Type = c("Task", "Task",
"Task", "Task", "Task"))
MINIFS(Activities$Date, Activities$Account.Name, Activities$Account.Name[1:390493],
Activities$Enterprise.Activity.Type, "Meeting")
#> Error in MINIFS(Activities$Date, Activities$Account.Name, Activities$Account.Name[1:390493], : could not find function "MINIFS"
I want to have "Activities$Account.Name[1:390493]" reference each adjacent Account Name going down the entire column the same way the "[@[Account Name]]" part of the excel formula does. Any clue how to do this?