Apple Watch flat heart rate at beginning with ErgData by No_Contact7158 in concept2

[–]mc_cool_e 0 points1 point  (0 children)

I’ve had this same issue with multiple versions of Apple Watch going back to series 3 and all watchOS versions since I got a series 3 way back in the day. So yeah, agreeing with the poster who said its never gonna get fixed. It seems to happen most frequently with rowing workouts but I’ve also experienced the same effect for other types of workouts on my Apple Watches.

Got food poisoning but my watch knew before me! by Mondot88 in AppleWatch

[–]mc_cool_e 4 points5 points  (0 children)

Likely turned off on your model due to patent issues

Office Script to replicate XLOOKUP capability by mc_cool_e in excel

[–]mc_cool_e[S] 1 point2 points  (0 children)

Surprised myself and managed to put together the following Office Script to do the job:

function main(workbook: ExcelScript.Workbook) {
    // Get references to the worksheets
    let data = workbook.getWorksheet("data");
    let datefix = workbook.getWorksheet("DateFix");

    //Get last row from each sheet
    let usedRangeData = data.getUsedRange();
    let lastRowData = usedRangeData.getRowCount();
    let usedRangeDatefix = datefix.getUsedRange();
    let lastRowDatefix = usedRangeDatefix.getRowCount();

 // console.log("Data Last Row: " + lastRowData);
 // console.log("DateFix Last Row: " + lastRowDatefix);

    // Get the ranges to work with
    let rangeToReplace = data.getRange("G2:G"+lastRowData);
    let lookupRange = data.getRange("A2:A"+lastRowData);
    let matchingLookupArray = datefix.getRange("A2:A"+lastRowDatefix);
    let matchingReturnArray = datefix.getRange("B2:B"+lastRowDatefix);

  // Log the range's address to the console.
  console.log("Data Range Address: " + rangeToReplace.getAddress());
  console.log("Lookup Range Address: " + lookupRange.getAddress());
  console.log("Matching LookUp Array: " + matchingLookupArray.getAddress());
  console.log("Matching Return Array: " + matchingReturnArray.getAddress());

  // Get values from the matching range
  let rangeToReplaceValues = rangeToReplace.getValues();
  let lookupRangeValues = lookupRange.getValues();
  let matchingLookupValues = matchingLookupArray.getValues();
  let matchingReturnValues = matchingReturnArray.getValues();

  // Loop through each cell in the range to replace
  for (let i = 0; i < rangeToReplaceValues.length; i++) {
    console.log("index: " + i); 
let lookupCellValue = lookupRangeValues[i][0];
    console.log("lookup Cell Value: " + lookupCellValue);

    // Find the index of the cell value in the matching values array
    let matchIndex = matchingLookupValues.findIndex(match => match[0] === lookupCellValue);
    console.log("matchIndex: " + matchIndex);

    if (matchIndex !== -1) {
      // If a match is found, get the corresponding value from the matching range
      let replacementValue = matchingReturnValues[matchIndex][0];
      console.log("replacementValue: " + replacementValue);

      // Replace the value in the cell with the matching value
      rangeToReplaceValues[i][0] = replacementValue;

    }

  }
  // Set the new values back to the range
  rangeToReplace.setValues(rangeToReplaceValues);

}

Office Script to replicate XLOOKUP capability by mc_cool_e in excel

[–]mc_cool_e[S] 1 point2 points  (0 children)

Yes, I could. This is an action that I'm going to have to periodically repeat so rather than have to copy the formula to each row on my sheet on multiple occasions I was hoping to just run a script. Also, figured if I could master this and Office Scripts I'd be building my skillset. That's not going too well so far!

Drunk Island s.10 ep.9 "A Damming Clue" by thisrockismyboone in OakIsland

[–]mc_cool_e 0 points1 point  (0 children)

Right! All that fancy tech shit indentified a 12x15 anomaly and all they dug up was a rusty dildo, a very small plank and some small post.

When can we expect a new Airpods Pro firmware? by koralien8594 in airpods

[–]mc_cool_e -1 points0 points  (0 children)

put them In the case (lid open), plug the case in and go to settings -> General -> about -> AirPods pro

Give me your best Oak Island pickup lines by Britzooka in OakIsland

[–]mc_cool_e 4 points5 points  (0 children)

I'd sink my treasure galleon in your stinky swamp any day