Before Excel introduced spill ranges, before the “@
” operator, one could ‘cast’ a range into a single value with “0+
” (numeric values) or “""&
” (strings). But “@
” isn’t quite the same.
Assume that there is a column of positive integers heading south from B4; and there is a row of positive integers heading east from D2; and that columns A and C and rows 1 and 3 are completely empty.
The object is to put into D4 a single spill formula, referring to something like $B$4#
and $D$2#
, that, when column integer bigger than row integer, calculates the pairwise Greatest Common Divisor of the two integers. Each of the desired spill cells is to be a pairwise GCD of just two integers.
So a candidate formula is:
= IF($B$4#>$D$2#, @GCD(@$B$4#, @$D$2#), "·")
Alas GCD
sees two array parameters, rather two values cast/intersected taken from the two arrays, and so calculates the GCD of all these many integers, inevitably returning 1
. Sigh.
Indeed, the next few don’t even spill.
= @IF(@$B$4#>@$D$2#, GCD(@$B$4#, @$D$2#), "·")
= IF(@$B$4#>@$D$2#, @GCD(@$B$4#, @$D$2#), "·")
= @IF($B$4#>$D$2#, @GCD(@$B$4#, @$D$2#), "·")
= GCD($B$4#, $D$2#)
= GCD(@$B$4#, @$D$2#)
Suggestions please.
(Mac Excel 16.32 (19120802) — which hopefully is irrelevant.)
Thank you.