Google-sheets – Google Sheets formula to find previous day high of a share price

formulasgoogle sheetsgoogle-finance

Need previous day high/low price of a share.
This formula gives answer

=googlefinance("nse:"&columno.,"high",today()-2.1)

This gives an answer with date and time in separate columns.
But I need only the value of a particular share price.
Will anyone help me out.

Best Answer

I think this will help you

=INDEX( IF(ISNA(GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-1))=TRUE, IF(ISNA(GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-2))=TRUE, GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-3),GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-2)),GOOGLEFINANCE("NSE:"&A2,"high",TODAY()-1)),2,2)

This will fetch the previous day market high.