Excel - Mutiple IFs in one cell -


alright, title hair misleading. first, i'm in google spreadsheet. second, more if(condition, return if(...)) kind of situation (also, looking around see if post excel formula question on site... didn't see if not proper place feel free , i'll delete).

i have table need value based on 2 cells:

   -3 -2 -1 0  1  2  3  4  5   ___________________________ a| 0, 0, 0, 1, 2, 4, 8, 12,16 b| 0, 0, 1, 2, 4, 8, 12,16,20 c| 0, 1, 2, 4, 8, 12,16,20,24 d| 1, 2, 4, 8, 12,16,20,24,28 

i need c1 equal returned if a1 "a", "b", "c", or "d" , , b1 in range of -3 - 5.

all of attempts have been #error, don't have show last hour i've put figuring out. i'm confident there's way though. if want failed attempts let me know.

suppose table stored on top left of sheet2, can use following formula in cell c1:

=iferror(vlookup($a$1,sheet2!$a$1:$j$5,$b$1+5,false),0) 

the vlookup function looks row desired letter (as given in a1). if found, return value in column indicated contents of b1 5 added transpose right value. false parameter indicates lookup should exact match.

if value not found, iferror wrapped around vlookup take care of inserting 0.

i shared a google spreadsheet example, formulas on sheet1 , table on sheet2.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -