Mac Numbers Misbehaving; giving completely wrong results using Index and Xmatch
I made this perfectly good, small calculator using Excel functions. I have a rate sheet on one tab, and on a separate tab I have this mini calculator, where I can enter the country (row across) and the weight of the package (column down) and it will return the correct postage for that package and country.
Exporting this to Numbers has been a nightmare. First, the functions break but, that's ok, I don't mind crawling down that rabbit hole to create a completely new formula using Index and XMatch (apparently, Match does not work for more than one criteria in Numbers). That only took a couple of hours (embarrassingly, but I never use Numbers for this so had to figure out how to create functions in that tiny little floating thing).
And, I got it! I figured it out! Except it returns screwy numbers. From other columns. I have tried changing the range to include and exclude what I try to imagine the app will find objectionable, and all I have figured out so far is that if I include the first weight entry of 0.5 (pounds) it shifts everything up one. So, I had to exclude that (not my biggest problem, but I would love to have an answer for that, too).
I am lost, here. It has, say, 75 columns for countries, but it will only search one column, and even then it comes up with the wrong number for that weight in that column.
I'll upload some screenshots to see if it makes any more sense.
This first one is just the top corner of the rate sheet:
This one shows a correct amount for GB, and an incorrect amount for AU (you can reference on the chart above)
This shows the formula for the GB column:
This shows the formula for the AU column. I realized they were slightly different so I changed them out...
Now, I believe they are the same. Notice how the amount for AU changed!
By the way, the column with $465.05 was an experiment with just the XMATCH function, a suggestion I saw online. Even though I had limited the decimal places to two, it still reads the full number, apparently, so I had to choose -1 instead of exact match to get a result, because I think it was rounding up. I did try the same -1 with the others, but no good result.
If I mess with the formula, like which rows are included, I do get slightly different answers for everything but the GB column.
Am I crazy here? Totally off? Using the completely wrong formulas? Help!!
Thanks,
Debbie
[Edited by Moderator]
MacBook Pro 16″, macOS 14.7