formula based on date

Faysamantha

Board Regular
Joined
Oct 15, 2009
Messages
146
hi

i have been struggling for a couple of hours now. what i would like is a formula in Cell B1 of my finance spreadsheet which looks for the current date in column a and sum's the values in the corresponding columns (which are also forumlas)

Here is a mini version:

So today the bank balance is £1200, there is £500 outstanding on the loan and the credit card has £2000 on it.

£1200 - £500 - £2000 = £1300 is owed
=B3+C3+D3


A
B
C
D
1
Debt Today =
£1300
2
Date
Balance
Loan
Credit Card
3
17/07/2012
£1200
-£500
-£2000
4
18/07/2012
£1800
-£480
-£2105
5
19/07/2012
£2200
-£460
-£2500

<tbody>
</tbody>
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Thank you all very much for your help, however there is just one little problem. the spreadsheet is on a much larger scale and the figures/values are not bundled in columns next to eachother, they have columns hidden inbetween. i should have said this at the beginning, sorry. here are the actual cell co-ordinates:

CINW
2Debt Today =£1300
6DateBalanceLoanCredit Card
28517/07/2012£1200-£500-£2000
28618/07/2012£1800-£480-£2105
28719/07/2012£2200-£460-£2500


<tbody>
</tbody>
 
Upvote 0
what is there in all these hidden columns ? and is row 6 the headers for your data ? what is there in row 1,3,4,5 and 7 ? how many rows of data you have ?
 
Upvote 0
in the hidden columns are formulas to get the values in the above cells. row 6 is the headers, the other rows which are hidden have all the previous dates up to 200 odd days ago.
my dates currently go to 31/12/2015 which is row 1545
 
Upvote 0
Perhaps:
C2:
-SUM(A4:C4)
Add to this cells:
A3:
Balance
B3:
Loan
C3:
Credit
Then in A4 drag accross to C4:
Assuming that the headers name are unique:

Excel 03:
=IF(ISNA(MATCH(TODAY(),$A$7:$A$2000,0)),"",INDEX($B$7:$Z$2000,MATCH(TODAY(),$A$7:$A$2000,0),MATCH(A3,$B$6:$Z$6,0)))
Excel 07/10
=IFERROR(INDEX($B$7:$Z$2000,MATCH(TODAY(),$A$7:$A$2000,0),MATCH(A3,$B$6:$Z$6,0)),"")
 
Upvote 0
try this formula. there is still an easy way to do it but i only know limited so here my formula:- =SUMIF($C$7:$C$1545,TODAY(),$I$7:$I$1545)+SUMIF($C$7:$C$1545,TODAY(),$N$7:$N$1545)+SUMIF($C$7:$C$1545,TODAY(),$W$7:$W$1545)
 
Upvote 0
Does this do what is required?

=SUMPRODUCT(VLOOKUP(TODAY(),C7:W2000,{7,12,21},0))
 
Upvote 0

Forum statistics

Threads
1,215,237
Messages
6,123,800
Members
449,127
Latest member
Cyko

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