AppleScript read a Numbers file for multiple instances of the same fomatted value and the cell above fromatted value
I want to write an AppleScript that reads a Numbers file and looks for 0.00% for every instance of it. I want to print 0.00% and the formatted value of the cell above each instance of 0.00%. I have the following working code that can find the instance of 0.00% once but I can't figure out how to make it continue looking for multiple instances of 0.00% and print them along with the cell above the cell that has 0.00%
tell application "Numbers" to tell document 1 to tell sheet 1 to tell table 1
set theValues to the formatted value of every cell
set theKey to "0.00%"
set found to "key unavailable"
set nbColumns to count columns
set indx to 0
repeat with r from 1 to count rows
repeat with c from 1 to nbColumns
set indx to indx + 1
if item indx of theValues = theKey then
set found to (the formatted value of cell r of column c)
end if
end repeat
end repeat
end tell
found
MacBook Air 13″, macOS 14.5