YOU SAID:
He went to the store to buy macaroni and cheese, only finding sandwiches however.
INTO JAPANESE
彼はサンドイッチをしかし見つけることだけマカロニとチーズを買いに店に行った。
BACK INTO ENGLISH
He went to the shop to buy Macaroni and cheese only to find the sandwich though.
INTO JAPANESE
彼がサンドイッチを見つけるためには、マカロニとチーズを買いに店に行った。
BACK INTO ENGLISH
In order for him to find a sandwich, I went to a store to buy macaroni and cheese.
INTO JAPANESE
彼はサンドイッチを見つけるため、マカロニとチーズを買いに店に行った
BACK INTO ENGLISH
Went to the store to find a sandwich he bought Macaroni and cheese
INTO JAPANESE
いや 彼らは店に行った
BACK INTO ENGLISH
They went to the store.
INTO JAPANESE
いや 彼らは店に行った
BACK INTO ENGLISH
They went to the store.
That didn't even make that much sense in English.