ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Lookup, IF, Then help (https://www.excelbanter.com/excel-worksheet-functions/5382-lookup-if-then-help.html)

CCDC

Lookup, IF, Then help
 
Below is the basic format of the 4 columns - In the 5th column (E) I want to
write a function where if the value in column A matches colmn C then the
return is the value in Column D - SO in the Row beginning in F it would go up
to the first C and see an H and pass it look at the next row and see an H
etc, then get to the second row and see the F and return the value 3 (which
is the sum of the F's)
A 1 F
A 2 F 3
B 3 G 3
C 5 H
C 2 H
C 1 H
C 1 H 9
D
E
F

I tried LookUP but it didn't always return an exact match. If the 3rd
column were dates and the column A date was Jun 16, once the array got to Jun
17 in Column C it returned that value, instead of going one more for the
exact match

--
- CC

CCDC

I am using this - =LOOKUP(A15,C4:C15,D4:D15) --- It works, except it returns
close matches and exact matches - I only want the exact ones.

"CCDC" wrote:

Below is the basic format of the 4 columns - In the 5th column (E) I want to
write a function where if the value in column A matches colmn C then the
return is the value in Column D - SO in the Row beginning in F it would go up
to the first C and see an H and pass it look at the next row and see an H
etc, then get to the second row and see the F and return the value 3 (which
is the sum of the F's)
A 1 F
A 2 F 3
B 3 G 3
C 5 H
C 2 H
C 1 H
C 1 H 9
D
E
F

I tried LookUP but it didn't always return an exact match. If the 3rd
column were dates and the column A date was Jun 16, once the array got to Jun
17 in Column C it returned that value, instead of going one more for the
exact match

--
- CC



All times are GMT +1. The time now is 04:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com