Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9831

How to create an array that will look up a string value in a sentence and return an int value in Google Sheets

$
0
0

My data is stored in Column F, the raw data looks like this:

The Images- had poor pixel quality.

What I want to do is to create an array formula that will look for my key word which is a string and convert that string keyword value to an int value.

Video= 1Audio=2Jpeg=3Images=4

This is what I tried, but I just can't seem to work out the logic as it doesn't seem to recognize the order of my second array list.

lookup(F2,       {"Video","Audio","Jpeg","Images"},       {"1", "2","3","4"}  ) 

Viewing all articles
Browse latest Browse all 9831

Latest Images

Trending Articles



Latest Images