Help with a table/database

dsalmons

New Member
Joined
Sep 23, 2013
Messages
37
I have a matrix/table of ID's mileages and term durations any help appreciated.

What I want to do is get a figure based on all 3 parameters i.e.

The vehicle ID (fr_ID) = 40203
The Mileage (fr_mileage) = 30
The term (fr_24) = 24 months

fr_IDfr_yearfr_monthfr_mileagefr_6fr_12fr_18fr_24fr_30fr_36fr_42fr_48fr_54fr_60
4020300100165751497513750123001120010100927583507650
402030020015725141501297511625106009525870078507200
402030030014850133751222511025101009025817573756750
40203004001402512625115501040095258525772569256350
4020300500132751190010850980090008025727565255950
4020300600126001127510250925084757575687561505600
402030070011975107009675875080257175650058255275
402030080011375101259150825075756775617555004975
40203009001080096008650780071506400582552004700
402030010001032591508225742568006100552549254425
40203001100985087257800705064505775525046754175
40203001200940083007425670061255500500044253950
40203001300902579507075640058505250477542003750
40203001400867576256775610056005025455040003575
40203001500832573006450582553504775435038253400
40203001600800070006175557551004575415036503225
40203001700767567005900532548754375397534753050
40203001800737564255625507546504175380033002900
40203001900707561505375485044503975362531502750
40203002000680058755125462542503800345030002625
402040010013950126001180010675100009325907583007875
40204002001322512000113001022596008925862578507375
4020400300126251147510800980092008500817574006925
4020400400120001090010300930087258075775070006525
402040050011400103009625872581757600732565756125
40204006001087597509050820076757150690062005750
40204007001040092508500767571756700647558005375
4020400800992587758000722567506275605054255025
4020400900947583257500677563505875562550504675
40204001000910079257100640059755500525047004375
40204001100872575756700602556005150490044004100
40204001200837572256350567552754825457541253825
40204001300805068756000537549754550430038503575
40204001400772565505650507547004300405036253350
40204001500742562505350480044504050380034003150
40204001600712559755050452542003800357532002950
40204001700682557004775427539753600335030002775
40204001800655054254525405037503375315028252625
40204001900630051754275382535503200297526502450
40204002000605049504025362533503000280025002300
402050010014700133001245011275105509850955087258275
402050020013950126751192510800101509425910082507775

<colgroup><col width="64" span="14" style="width:48pt"> </colgroup><tbody>
</tbody>






 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
You can either do this with a complex formula, but I'd prefer sticking a helper column on your data that concatenates the fr_ID and fr_Mileage - you can then do a simple index/match or Vlookup.

Here's one formula that will do that you want - this can be much improved upon
Code:
=SUM(IF(A2:A43=40203,1,0)*IF(D2:D43=30,1,0)*OFFSET(F2:F43,0,MATCH("fr_24",F1:N1,0)-1))

Needs entering with Ctrl+Shift and Enter
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,303
Members
449,218
Latest member
Excel Master

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