(V)LOOKUP Formula

Dhira

Board Regular
Joined
Feb 23, 2006
Messages
81
Office Version
  1. 2021
Platform
  1. Windows
Hi ya'll,

I'm trying to create a formula in a column (C) that looks up whether there was a value in column E, and if there was, adds up the value of that row in column D
Then it only add to that total if there's a value in column E. otherwise, it returns a blank value in column C.

See below (without the proper formula):
Lookup.xlsx
ABCDE
1IncentiveProfitCulmulativeWithdrawnLP
2$1.77
3$3.70
4$79.99$79.990.7553
5$2.71
6$0.96
7$1.20
8$1.21
9$1.12
10$283.38$203.391.705347
11$1.63
12$0.87
13$0.78
14$0.73
15$0.90
16$441.28$157.901.01598
17$2.14
18$1.02
19$0.88
20$0.89
Sheet1
Cell Formulas
RangeFormula
C4C4=D4
C10C10=D4+D10
C16C16=D4+D10+D16


(My pathetic attempt began with =IF(VLOOKUP(*,E$2:E2,-1, ... then my brain froze 🥲.)
Help appreciated.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try this:

Book1
ABCDE
1IncentiveProfitCulmulativeWithdrawnLP
2 1.77
3 3.7
479.9979.990.7553
5 2.71
6 0.96
7 1.2
8 1.21
9 1.12
10283.38203.391.705346586
11 1.63
12 0.87
13 0.78
14 0.73
15 0.9
16441.28157.91.01598
17 2.14
18 1.02
19 0.88
20 0.89
21
Sheet1
Cell Formulas
RangeFormula
C2:C20C2=IF(E2="","",SUMIF($E$2:E2,"<>",$D$2:D2))
 
Upvote 0
Solution

Forum statistics

Threads
1,221,810
Messages
6,162,108
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top