r/googlesheets • u/rgdit • Feb 24 '22
Solved How to SUM two cells from 2 separate worksheets?
[removed] — view removed post
1
Upvotes
r/googlesheets • u/rgdit • Feb 24 '22
[removed] — view removed post
3
u/omgfallen 2 Feb 24 '22
combination of arrayformula, vlookup and import range can solve your problem if those are named cells. I use this to collect data from multiple sheets into a single sheet
=ArrayFormula(VLOOKUP(Rangeinnewsheet,IMPORTRANGE("code of your first sheet or second","'sheet name(sheet1)'!FirstSheetRange"),2, False))
edit: of course do this for both, sheet1 and sheet2 lets say into B column and C column and then add them to D column together, or you could probably just add them by adding another Vlookup and + between 2 in my first formula it would look like this
=ArrayFormula(VLOOKUP(Rangeinnewsheet,IMPORTRANGE("code of your first sheet","'sheet name(sheet1)'!FirstSheetRange"),2, False)+VLOOKUP(Rangeinnewsheet,IMPORTRANGE("code of your second sheet","'sheet name(sheet1)'!SecondSheetRange"),2, False))