Find Consumption on monthly basis

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
297
Office Version
  1. 365
Platform
  1. Windows
Find consumption on monthly basis.xlsx
ABCDEFG
1DateDaily ReadingConsumed Explanation - Formula request for Column CDateMonthly Reading
215-11-20237448.360.36C2=G2-B2 (Date in A2 falls between 15-11-2023 to 17-12-2023 as in F2)15-11-20237448.00
317-11-20237452.004.00C3=G2-B3 (Date in A3 falls between 15-11-2023 to 17-12-2023 as in F2)18-12-20237726.00
420-11-20237456.288.28C4=G2-B4 (Date in A4 falls between 15-11-2023 to 17-12-2023 as in F2)15-01-20248198.00
521-12-20237738.4012.40(C5=G3-B5 (Date in A5 falls between 18-12-2923 & 14-01-2024 as in F3)
631-12-20237794.5068.50(C6=G3-B6 (Date in A6 falls between 18-12-2923 & 14-01-2024 as in F3)
716-01-20248201.003.00(C7=G4-B7 (Date in A7 falls on or after 15-01-2024 as in F4)
8
9Excel 365. I request you to kindly advise me formula for Column C
10Thanking you.
11
Sheet1
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this

Excel Formula:
=IFERROR(ABS(INDEX($G$2:$G$4,MATCH(A2,$F$2:$F$4,1))-B2),"")

1706673947438.png
 
Upvote 0
Find consumption on monthly basis.xlsx
ABCDEFG
1DateDaily ReadingConsumed Excel 365DateMonthly Reading
215-11-20237448.360.36Sir, One more clarification and request for15-11-20237448.00
317-11-20237452.004.00formula. The dates in Column A are filled with18-12-20237726.00
420-11-20237456.288.28dates (DD-MM-YYYY). The future dates Reading15-01-20248198.00
521-12-20237738.4012.40in B9 and B10 will be filled on relevant days.17-01-20248202.00
631-12-20237794.5068.50I, therefore, want C9 and C10 to be blank.
717-01-20248204.002.00Since B9 and B10 are blank, C9 and C10 should
818-01-20248207.005.00display blank. I request you, Sir, an amendment to
908-02-20248202.00formula in Column C. Thanking you, Sir.
1011-02-20248202.00
11
Sheet1
Cell Formulas
RangeFormula
C2:C11C2=IFERROR(ABS(INDEX($G$2:$G$8,MATCH(A2,$F$2:$F$8,1))-B2)," ")
 
Upvote 0
Try this sir

in Cell "C2" and filldown
Excel Formula:
=IF(B2="","",IFERROR(ABS(INDEX($G$2:$G$8,MATCH(A2,$F$2:$F$8,1))-B2)," "))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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