Search Column A to match a number in column C if True return column B if false return “0”

后端 未结 4 535
长情又很酷
长情又很酷 2021-01-24 22:44

I am trying to make data collected in 15 minute increments look like data collected in 5 minute increments with the blank spaces being zero. I have created a column with Julian

4条回答
  •  野性不改
    2021-01-24 22:59

    The common way to handle this sort of lookup is using INDEX-MATCH. You may also be able to use VLOOKUP but I always prefer INDEX-MATCH.

    Picture of ranges shows the 5 minute times in column C with 15 minute data in column F.

    showing ranges

    Formula in C1 is a combination of INDEX-MATCH and IFERROR. The IFERROR is used to handle the case of a value not found and returning the 0 you wanted.

    =IFERROR(INDEX($F$1:$F$11,MATCH(B1,$E$1:$E$11,0)),0)
    

    That formula can be copied down from C1 to the end of the 5-minute times.

提交回复
热议问题