SOLVED

Issue with converting google spreadsheet into excel

%3CLINGO-SUB%20id%3D%22lingo-sub-2429362%22%20slang%3D%22en-US%22%3EIssue%20with%20converting%20google%20spreadsheet%20into%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2429362%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CBR%20%2F%3EI%20have%20been%20working%20on%20google%20spreadsheets%20and%20recently%20had%20to%20convert%20it%20into%20an%20excel%20file%3B%20however%20the%20formulas%20for%20certain%20columns%20cudnt%20carry%20into%20excel%20as%20expected.%3CBR%20%2F%3EAttached%20below%20is%20an%20excel%20document%20%26nbsp%3Band%20my%20concern%20is%20on%20sheet%20-%20%22Stock%20Summary%20USD%22.%3CBR%20%2F%3EThe%20units%20column%20'L'%20seems%20to%20have%20got%20distorted%20and%20the%20formula%20is%20not%20functioning%20as%20intended.%20im%20assuming%20its%20because%20of%20a%20function%20called%20'array%20formula'%20from%20google%20spreadsheet.%20Can%20anybody%20please%20have%20a%20look%20and%20guide%20me%20on%20how%20to%20resolve%20this%20issue.%20feel%20free%20to%20edit%20the%20excel%20sheet%2C%20if%20the%20formula%20is%20functioning%20properly%20the%20value%20of%20L13%20in%20the%20%22Stock%20Summary%20USD%22%20sheet%20shud%20be%2010.%26nbsp%3B%3CBR%20%2F%3EThankyou%20for%20all%20your%20assistance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2429362%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2429434%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20converting%20google%20spreadsheet%20into%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2429434%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1066303%22%20target%3D%22_blank%22%3E%40mohammed3786%3C%2FA%3E%26nbsp%3BDon't%20know%20anything%20about%20Google%20Sheets%2C%20but%20when%20I%20open%20your%20file%2C%20I%20find%20this%20in%20L2%20on%20the%20Summary%20sheet%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIFERROR(%40__xludf.DUMMYFUNCTION(%22iferror(INDEX(arrayformula(filter('Transactions%20USD'!J%3AJ%2C'Transactions%20USD'!C%3AC%26lt%3B%26gt%3B%22%22%22%22%2Crow('Transactions%20USD'!C%3AC)%3Dmax(if('Transactions%20USD'!C%3AC%3DB2%2Crow('Transactions%20USD'!C%3AC)%2C0))))%20%2C1)%2C0)%22)%2C6.5)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EIt%20seems%20you%20have%20used%20a%20user%20defined%20function%20in%20GS.%20Obviously%2C%20it%20is%20not%20recognised%20by%20Excel.%20and%20%22array%20formula%22%20isn't%20something%20Excel%20would%20recognise%20either.%20In%20addition%20to%20that%2C%20the%20expressions%20in%20the%20%22filter%22%20%26nbsp%3Bfunction%20aren't%20compatible%20with%20those%20for%20Excel%20either.%20So%2C%20what%20it%20is%20that%20you%20want%20to%20calculate%20in%20column%20L%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2429549%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20with%20converting%20google%20spreadsheet%20into%20excel%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2429549%22%20slang%3D%22en-US%22%3E%3CP%3EI've%20never%20worked%20with%20google%20sheets%2C%20but%20it%20appears%20to%20me%20that%20excel%20didn't%20recognize%20the%20existing%20formula%2C%20so%20put%20the%20existing%20formula%20in%20quotes%20and%20wrapped%20it%20with%20an%20iferror%20function%20to%20return%20the%20last%20calculated%20value.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20have%20office%20365%20and%20excel's%20version%20of%20the%20filter%20function%2C%20then%20I%20think%20your%20formula%20in%20L2%20would%20be%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3Diferror(INDEX(filter('Transactions%20USD'!J%3AJ%2C('Transactions%20USD'!C%3AC%26lt%3B%26gt%3B%22%22)*(row('Transactions%20USD'!C%3AC)%3Dmax(if('Transactions%20USD'!C%3AC%3DB2%2Crow('Transactions%20USD'!C%3AC)%2C0))))%2C1)%2C0)%3CBR%20%2F%3E%3CBR%20%2F%3EBut%2C%20you%20should%20explain%20further%20the%20purpose%20of%20the%20formula%20as%20there%20may%20be%20a%20better%20way%20to%20do%20it.%20For%20the%20formula%20in%20'Stock%20Summary%20USD'!L2%2C%20It%20appears%20you%20are%20trying%20to%20return%20the%20last%20entry%20from%20'Transactions%20USD'%20column%20J%20where%20the%20stock%20name%20in%20column%20C%20equals%20B2%3F%20If%20so%2C%20and%20you%20have%20office%20365%2C%20then%20you%20might%20take%20a%20look%20at%20excel's%20xlookup%20function%20as%20it%20can%20perform%20a%20lookup%20from%20the%20bottom%20up.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fxlookup-function-b7fd680e-6d10-43e6-84f9-88eae8bf5929%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fxlookup-function-b7fd680e-6d10-43e6-84f9-88eae8bf5929%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOtherwise%2C%20you%20could%20try%3A%3CBR%20%2F%3E%3DLOOKUP(2%2C1%2F('Transactions%20USD'!C%3AC%3DB2)%2C'Transactions%20USD'!J%3AJ)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello
I have been working on google spreadsheets and recently had to convert it into an excel file; however the formulas for certain columns cudnt carry into excel as expected.
Attached below is an excel document  and my concern is on sheet - "Stock Summary USD".
The units column 'L' seems to have got distorted and the formula is not functioning as intended. im assuming its because of a function called 'array formula' from google spreadsheet. Can anybody please have a look and guide me on how to resolve this issue. feel free to edit the excel sheet, if the formula is functioning properly the value of L13 in the "Stock Summary USD" sheet shud be 10. 
Thankyou for all your assistance.

5 Replies

@mohammed3786 Don't know anything about Google Sheets, but when I open your file, I find this in L2 on the Summary sheet:

=IFERROR(@__xludf.DUMMYFUNCTION("iferror(INDEX(arrayformula(filter('Transactions USD'!J:J,'Transactions USD'!C:C<>"""",row('Transactions USD'!C:C)=max(if('Transactions USD'!C:C=B2,row('Transactions USD'!C:C),0)))) ,1),0)"),6.5)

It seems you have used a user defined function in GS. Obviously, it is not recognised by Excel. and "array formula" isn't something Excel would recognise either. In addition to that, the expressions in the "filter"  function aren't compatible with those for Excel either. So, what it is that you want to calculate in column L?

best response confirmed by mohammed3786 (Occasional Contributor)
Solution

I've never worked with google sheets, but it appears to me that excel didn't recognize the existing formula, so put the existing formula in quotes and wrapped it with an iferror function to return the last calculated value.

If you have office 365 and excel's version of the filter function, then I think your formula in L2 would be:

=iferror(INDEX(filter('Transactions USD'!J:J,('Transactions USD'!C:C<>"")*(row('Transactions USD'!C:C)=max(if('Transactions USD'!C:C=B2,row('Transactions USD'!C:C),0)))),1),0)

But, you should explain further the purpose of the formula as there may be a better way to do it. For the formula in 'Stock Summary USD'!L2, It appears you are trying to return the last entry from 'Transactions USD' column J where the stock name in column C equals B2? If so, and you have office 365, then you might take a look at excel's xlookup function as it can perform a lookup from the bottom up.

https://support.microsoft.com/en-us/office/xlookup-function-b7fd680e-6d10-43e6-84f9-88eae8bf5929

Otherwise, you could try:
=LOOKUP(2,1/('Transactions USD'!C:C=B2),'Transactions USD'!J:J)

Also, if you're staying with excel, you should consider converting your data tables to structured tables (select your table, then click on the Insert tab and click the table button). When you click on the structured table, a Table Tools tab will appear on the ribbon.

Then, when you write your formulas you can just select the ranges that have data and excel will use a structured table reference in the formula. You won't need to use entire column references in your formula - as your table grows, your formulas will automatically include the new rows when you use structured tables. This should help a lot with calculation speed.

I apologize for the delayed response. i couldn't reply as I was traveling.
yes, you have understood my requirement perfectly and it looks like the lookup formula mentioned above works perfectly as needed
thankyou very much for your response.
Thankyou for your reply Riny, @JMB17 has got my issue resolved.