SOLVED

Vlookup

%3CLINGO-SUB%20id%3D%22lingo-sub-484004%22%20slang%3D%22en-US%22%3EVlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484004%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20some%20help%20with%20Vlookup%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20need%20to%20do%20is%20look%20at%202%20seperate%20list%20of%20dates.%20If%20the%20dates%20are%20the%20same%20from%20each%20worksheet%20then%20I%20need%20to%20return%20to%20a%20specific%20cell%20contents%20of%20another%20cell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMeaning%20the%20following.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20look%20at%20(B38%3AB84)%20on%20one%20sheet%2C%20I%20look%20at%20'Incoming%20Finance'!B5%3AB348)%20on%20another%20sheet%20if%20the%20contents%20(dates)%20are%20the%20same%20then%20I%20want%20to%20copy%20the%20contents%20of%20incoming%20finance%20cell%20E5%3AE348%20to%26nbsp%3B(D38%3AD84)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20english%20this%20means%20if%20the%20two%20dates%20are%20the%20same%20copy%20the%20values%20from%20a%20horizontal%20offset%20cell%20to%20another%20cell%20in%20a%20range%20of%20cells.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMore%20detailed%20is%20if%20worksheet%20%22Income%20Tracking%22%20cell%20B38%20Date%20is%20the%20same%20as%20any%20cell%20within%20the%20range%20E5%3AE348%20on%20worksheet%20Incoming%20Finance.%20then%20copy%20the%20contents%20of%20the%20cell%20(HXXX)%20from%20income%20tracking%22%20worksheet%20to%20cell%20FXXX%20on%20%22Income%20tracking%22%20worksheet%20where%20cell%20FXXX%20is%20the%20same%20date%20as%20the%20the%20two%20compared%20dates.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-484004%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484182%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484182%22%20slang%3D%22en-US%22%3EI%20suggest%20that%20you%20attach%20your%20sample%20file%20so%20that%20I%20can%20visualize%20your%20desired%20results.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484673%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484673%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20please%20find%20attached%20the%20actual%20file.%20Please%20treat%20with%20confidence.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484777%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484777%22%20slang%3D%22en-US%22%3EIn%20the%20Income%20Tracking%20Schedule%20Sheets%2C%20your%20labels%20for%20Columns%20C%20to%20E%20are%20Planned%20Remittance%20Total%2C%20Actual%20Weekly%20Running%20Total%2C%20and%20Weekly%20Remittance%20Required.%20How%20do%20you%20calculate%20the%20amounts%20to%20be%20returned%20under%20each%20Column%20for%20each%20date%20in%20Column%20B%3F%20No%20identical%20labels%20exist%20in%20the%20Incoming%20Finance%20Sheet.%20Please%20manually%20enter%20your%20desired%20results%20under%20each%20Column%20and%20explain%20how%20you%20calculated%20each%20of%20them%20so%20that%20I%20can%20decipher%20the%20formulas%20applicable%20thereto.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-484964%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-484964%22%20slang%3D%22en-US%22%3E%3CP%3EhI%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20a%20further%20explanation%20in%20the%20file%20you%20will%20see%26nbsp%3BIncoming%20Finance%20worksheet%20with%20dates%20in%20column%20B.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20will%20also%20see%20on%20worksheet%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20dates%20in%20column%20B.%20these%20are%20the%20Saturdays%20of%20each%20week%20of%20the%20project.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20for%20every%20Saturday%20on%20the%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20i%20would%20like%20to%20retrieve%20the%26nbsp%3BRunning%20Total%20(US%24)%3A%20value%20in%20Column%20F%20on%20the%20incoming%20Finance%20worksheet%20for%20tat%20Saturday%20and%20place%20it%20in%20the%26nbsp%3B%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20column%20D%20for%20that%20particular%20Saturday.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20you%20can%20still%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F323150%22%20target%3D%22_blank%22%3E%40vonryan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485037%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485037%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20and%20thanks%20for%20getting%20back%20to%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20answer%20to%20your%20questions%20please%20find%20below%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Eyour%20labels%20for%20Columns%20C%20to%20E%20are%20Planned%20Remittance%20Total%2C%20Actual%20Weekly%20Running%20Total%2C%20and%20Weekly%20Remittance%20Required.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EHow%20do%20you%20calculate%20the%20amounts%20to%20be%20returned%20under%20each%20Column%20for%20each%20date%20in%20Column%20B%3F%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThese%20are%20calculated%20figures%20based%20on%20the%20following%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPlanned%20Remittance%20is%20based%20on%26nbsp%3B%3DROUNDUP(C2%2FC7%2C1)%20which%20is%20budget%20%2F%20No%20of%20weeks%20remaining%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EActual%20Weekly%20Running%20Total%20is%20based%20on%26nbsp%3B%3D'Incoming%20Finance'!E7.%20This%20a%20manual%20added%20value%20that%20I%20am%20trying%20to%20automate%20with%20the%20Vlookup%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EWeekly%20Remittance%20Required%20is%20based%20on%26nbsp%3B%3DC38%20which%20is%20derived%20from%20a%26nbsp%3B%3DROUNDUP(C2%2FC7%2C1)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EWhat%20I%20want%20to%20achieve%20is%20a%20formula%20via%20Vlookup%20or%20some%20other%20method%20that%20will%20look%20at%20the%20dates%20on%20both%20worksheets%26nbsp%3BIncoming%20Finance%20and%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20and%20where%20the%20dates%20match%2C%20ie%20Saturday%2030th%20March%202019%20take%20the%20value%20that%20is%20given%20in%26nbsp%3BRunning%20Total%20(US%24)%3A%20column%20F%20of%26nbsp%3BIncoming%20Finance%20and%20place%20it%20in%20column%20D%20of%20the%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20worksheet%20at%20exactly%20the%20same%20date.%20In%20this%20example%20this%20would%20be%20cell%20D38.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20am%20requesting%20a%20method%20of%20doing%20this%20for%20all%20cells%20in%20column%20D%20for%20the%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20worksheet.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20hope%20this%20clarifies%20things%20for%20you%2C%20if%20not%20then%20please%20ask%20for%20more%20information.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20appreciate%20all%20your%20time%20and%20effort%20thus%20far.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ERegards%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EVonryan%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENo%20identical%20labels%20exist%20in%20the%20Incoming%20Finance%20Sheet.%20Please%20manually%20enter%20your%20desired%20results%20under%20each%20Column%20and%20explain%20how%20you%20calculated%20each%20of%20them%20so%20that%20I%20can%20decipher%20the%20formulas%20applicable%20thereto.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485139%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485139%22%20slang%3D%22en-US%22%3EA%20simple%20VLOOKUP%20like%20this%20in%20D38%20is%20all%20you%20need%3A%3CBR%20%2F%3E%3DVLOOKUP(B38%2C%3CBR%20%2F%3E'Incoming%20Finance'!B%245%3AM%24348%2C%3CBR%20%2F%3E5%2C0)%3CBR%20%2F%3ENote%20that%20the%20col_index_num%20argument%20of%205%20is%20hard-coded%20because%20there%20is%20no%20identical%20column%20label%20in%20the%20Incoming%20Finance%20Sheet%20against%20which%20the%20corresponding%20column%20label%20in%20the%20Income%20Tracking%20Schedule%20Sheet%20may%20be%20matched.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485170%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485170%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20seems%20to%20have%20worked%20for%20cell%20B38%2C%20and%20it%20does%20return%20the%20correct%20value.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20how%20do%20I%20get%20the%20Vlookup%20to%20do%20it%20for%20all%20Saturdays%20in%20column%20B%20of%20the%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20work%20sheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20all%20your%20help%20so%20far.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485179%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485179%22%20slang%3D%22en-US%22%3EI%20inadvertently%20forgot%20to%20mention%20earlier.%20You%20just%20need%20to%20copy%20the%20formula%20in%20D38%2C%20down%20the%20rows.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485213%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485213%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20seems%20to%20have%20worked%20for%20cell%20B38%2C%20and%20it%20does%20return%20the%20correct%20value.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20I%20modified%20your%20Vlookup%20statement%20to%26nbsp%3B%3DVLOOKUP(B38%3AB84%2C'Incoming%20Finance'!B%245%3AM%24348%2C5%2C0)%20and%20all%20the%20cells%20now%20show%20the%20current%20value.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20this%20formula%20before%20and%20did%20not%20get%20the%20correct%20answer.%20You%20have%20shown%20me%20that%20the%20hard%20coded%20value%20of%205%20in%20the%20formula%20includes%20the%20original%20cell%20as%20the%20first%20cell%2C%20i.e%201%20Column%20B%20of%26nbsp%3BIncoming%20Finance.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20used%204%20as%20I%20did%20not%20count%20the%20original%20column%20(B)%20as%20part%20of%20the%20offset.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20have%20been%20a%20great%20help%20and%20I%20thank%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-485314%22%20slang%3D%22en-US%22%3ERe%3A%20Vlookup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-485314%22%20slang%3D%22en-US%22%3EYou%E2%80%99re%20welcome!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-488537%22%20slang%3D%22en-US%22%3EDate%20in%20the%20past%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-488537%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20interested%2C%20maybe%20you%20can%20help%20me%20with%20another%20issue%20as%20I%20am%20a%20real%20beginner%20with%20Excel%20if%20you%20want.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%26nbsp%3BIncome%20Tracking%20Schedule%20(US%24)%20I%20have%20added%20a%20deviation%20(%2B%2F-)%20column%20in%20which%20I%20calculate%20the%20deviation%20of%20what%20has%20been%20remitted%20in%20foreign%20currency%20and%20what%20should%20have%20been%20remitted.%20The%20formula%20is%26nbsp%3B%3DD38-C38%2C%20very%20simple%2C%20but%20my%20issue%20is%20I%20want%20to%20automatically%20do%20this%20for%20each%20Saturday%20instead%20of%20manually%20dragging%20the%20formula%20down%20in%20the%20column%20every%20Saturday%20to%20update%20the%20spreadsheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20would%20like%20to%20do%20is%20check%20if%20the%20date%20in%20column%20B%20is%20in%20the%20past%2C%20if%20it%20is%20then%20apply%20the%20formula%20to%20the%20cell%20of%20that%20date%20which%20will%20calculate%20the%20deviation%20otherwise%20leave%20the%20cell%20blank.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20cannot%20find%20a%20funtion%20that%20will%20do%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20the%20revised%20spreadsheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20forward%20to%20your%20assistance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-488728%22%20slang%3D%22en-US%22%3ERe%3A%20Date%20in%20the%20past%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-488728%22%20slang%3D%22en-US%22%3EIn%20that%20case%2C%20you%20only%20need%20as%20simple%20IF%20in%20F38%2C%20copied%20down%20rows%2C%20like%20this%3A%3CBR%20%2F%3E%3DIF(B38%26lt%3B%3DTODAY()%2C%3CBR%20%2F%3ED38-C38%2C%3CBR%20%2F%3E%22%22)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-488751%22%20slang%3D%22en-US%22%3ERe%3A%20Date%20in%20the%20past%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-488751%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20again%2C%20perfect%20just%20what%20I%20needed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much.%20Saved%20me%20hours%20trying%20to%20figure%20it%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-488757%22%20slang%3D%22en-US%22%3ERe%3A%20Date%20in%20the%20past%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-488757%22%20slang%3D%22en-US%22%3EWelcome%20again.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-490146%22%20slang%3D%22en-US%22%3EVBA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-490146%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20up%20for%20a%20new%20challenge.%20I%20am%20coming%20direct%20to%20you%20as%20you%20have%20been%20a%20great%20help%20so%20far.%20Your%20futher%20assistance%20would%20be%20greatfully%20appreciated.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20venturing%20into%20VBA%20as%20it%20appears%20that%20this%20is%20the%20only%20way%20I%20can%20achieve%20what%20I%20want.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOk%20here%20goes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20the%20Incoming%20Finance%20work%20sheet%20there%20are%20a%20lot%20of%20rows%20that%20have%20very%20little%20data%20in%20them.%20This%20is%20OK%20as%20all%20entries%20on%20this%20sheet%20are%20manual.%20What%20i%20want%20to%20do%20is%20hide%20rows%20if%20the%20date%20is%20in%20the%20past%20and%20the%20column%20E%20is%20empty%20for%20that%20date.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20creating%20the%20following%20in%20VBA%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPrivate%20Sub%20Worksheet_Change(ByVal%20Target%20As%20Range)%3CBR%20%2F%3EActiveSheet.Activate%3CBR%20%2F%3EIf%20Not%20Application.Intersect(Range(%22A1%22)%2C%20Range(Target.Address))%20Is%20Nothing%20Then%3CBR%20%2F%3ESelect%20Case%20Target.Value%3CBR%20%2F%3ECase%20Is%20%3D%20%22Hide%22%3A%20Rows(%225%3A10%22).EntireRow.Hidden%20%3D%20True%3CBR%20%2F%3ECase%20Is%20%3D%20%22Unhide%22%3A%20Rows(%225%3A10%22).EntireRow.Hidden%20%3D%20False%3CBR%20%2F%3EEnd%20Select%3CBR%20%2F%3EEnd%20If%3CBR%20%2F%3EEnd%20Sub%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20works%20when%20I%20type%20Hide%20or%20Unhide%20in%20cell%20A1.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20modify%20this%20to%20say%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Cell%20(B5)%20%26lt%3B%3D%20TODAY()%20and%20Cell%20(E5)%20%26lt%3B%26gt%3B0%20then%26nbsp%3BRow(%225%22).EntireRow.Hidden%20%3D%20True%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20want%20to%20do%20this%20for%20all%20rows%20in%20the%20worksheet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20willing%20to%20take%20on%20this%20challenge.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20Regards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-490150%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-490150%22%20slang%3D%22en-US%22%3EI%E2%80%99m%20sorry.%20VBA%20is%20not%20my%20forte.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-490160%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-490160%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20getting%20back%20to%20me.%20Again%20I%20am%20grateful%20for%20all%20of%20your%20help%20so%20far.%20I%20will%20use%20the%20community%20to%20see%20if%20anyone%20can%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVonryan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
vonryan
Contributor

Dear All,

 

I would like some help with Vlookup

 

What I need to do is look at 2 seperate list of dates. If the dates are the same from each worksheet then I need to return to a specific cell contents of another cell.

 

Meaning the following.

 

i look at (B38:B84) on one sheet, I look at 'Incoming Finance'!B5:B348) on another sheet if the contents (dates) are the same then I want to copy the contents of incoming finance cell E5:E348 to (D38:D84)

 

In english this means if the two dates are the same copy the values from a horizontal offset cell to another cell in a range of cells.

 

More detailed is if worksheet "Income Tracking" cell B38 Date is the same as any cell within the range E5:E348 on worksheet Incoming Finance. then copy the contents of the cell (HXXX) from income tracking" worksheet to cell FXXX on "Income tracking" worksheet where cell FXXX is the same date as the the two compared dates.

 

Best Regards

 

Vonryan

 

17 Replies
I suggest that you attach your sample file so that I can visualize your desired results.

@Twifoo 

 

Hi, please find attached the actual file. Please treat with confidence.

 

Best Regards

 

Ian

In the Income Tracking Schedule Sheets, your labels for Columns C to E are Planned Remittance Total, Actual Weekly Running Total, and Weekly Remittance Required. How do you calculate the amounts to be returned under each Column for each date in Column B? No identical labels exist in the Incoming Finance Sheet. Please manually enter your desired results under each Column and explain how you calculated each of them so that I can decipher the formulas applicable thereto.

hI,

 

For a further explanation in the file you will see Incoming Finance worksheet with dates in column B.

 

You will also see on worksheet Income Tracking Schedule (US$) dates in column B. these are the Saturdays of each week of the project.

 

So for every Saturday on the Income Tracking Schedule (US$) i would like to retrieve the Running Total (US$): value in Column F on the incoming Finance worksheet for tat Saturday and place it in the  Income Tracking Schedule (US$) column D for that particular Saturday.

 

Hope you can still help.

 

Regards

 

Ian

 

@vonryan 

@Twifoo 

 

Hi and thanks for getting back to me.

 

In answer to your questions please find below

 

your labels for Columns C to E are Planned Remittance Total, Actual Weekly Running Total, and Weekly Remittance Required.

How do you calculate the amounts to be returned under each Column for each date in Column B?

These are calculated figures based on the following:

 

Planned Remittance is based on =ROUNDUP(C2/C7,1) which is budget / No of weeks remaining

Actual Weekly Running Total is based on ='Incoming Finance'!E7. This a manual added value that I am trying to automate with the Vlookup

Weekly Remittance Required is based on =C38 which is derived from a =ROUNDUP(C2/C7,1)

 

What I want to achieve is a formula via Vlookup or some other method that will look at the dates on both worksheets Incoming Finance and Income Tracking Schedule (US$) and where the dates match, ie Saturday 30th March 2019 take the value that is given in Running Total (US$): column F of Incoming Finance and place it in column D of the Income Tracking Schedule (US$) worksheet at exactly the same date. In this example this would be cell D38.

 

I am requesting a method of doing this for all cells in column D for the Income Tracking Schedule (US$) worksheet.

 

I hope this clarifies things for you, if not then please ask for more information.

 

I appreciate all your time and effort thus far.

 

Regards

 

Vonryan

 

No identical labels exist in the Incoming Finance Sheet. Please manually enter your desired results under each Column and explain how you calculated each of them so that I can decipher the formulas applicable thereto.

 

 

Solution
A simple VLOOKUP like this in D38 is all you need:
=VLOOKUP(B38,
'Incoming Finance'!B$5:M$348,
5,0)
Note that the col_index_num argument of 5 is hard-coded because there is no identical column label in the Incoming Finance Sheet against which the corresponding column label in the Income Tracking Schedule Sheet may be matched.

Hi @Twifoo 

 

That seems to have worked for cell B38, and it does return the correct value.

 

Now how do I get the Vlookup to do it for all Saturdays in column B of the Income Tracking Schedule (US$) work sheet.

 

I appreciate all your help so far.

 

Thank you

 

Vonryan

 

I inadvertently forgot to mention earlier. You just need to copy the formula in D38, down the rows.

Hi @Twifoo 

 

That seems to have worked for cell B38, and it does return the correct value.

 

So I modified your Vlookup statement to =VLOOKUP(B38:B84,'Incoming Finance'!B$5:M$348,5,0) and all the cells now show the current value.

 

I tried this formula before and did not get the correct answer. You have shown me that the hard coded value of 5 in the formula includes the original cell as the first cell, i.e 1 Column B of Incoming Finance. 

 

I used 4 as I did not count the original column (B) as part of the offset.

 

You have been a great help and I thank you.

 

Best Regards

 

Vonryan

 

Thank you

 

Vonryan

 

You’re welcome!

Hi there,

 

If you are interested, maybe you can help me with another issue as I am a real beginner with Excel if you want.

 

On the Income Tracking Schedule (US$) I have added a deviation (+/-) column in which I calculate the deviation of what has been remitted in foreign currency and what should have been remitted. The formula is =D38-C38, very simple, but my issue is I want to automatically do this for each Saturday instead of manually dragging the formula down in the column every Saturday to update the spreadsheet.

 

What I would like to do is check if the date in column B is in the past, if it is then apply the formula to the cell of that date which will calculate the deviation otherwise leave the cell blank.

 

I cannot find a funtion that will do this.

 

I have attached the revised spreadsheet.

 

Looking forward to your assistance.

 

Vonryan

 

@Twifoo 

In that case, you only need as simple IF in F38, copied down rows, like this:
=IF(B38<=TODAY(),
D38-C38,
"")

Hi there@Twifoo 

 

Once again, perfect just what I needed.

 

Thank you so much. Saved me hours trying to figure it out.

 

Best Regards

 

Vonryan

 

Welcome again.

Hi @Twifoo,

 

Are you up for a new challenge. I am coming direct to you as you have been a great help so far. Your futher assistance would be greatfully appreciated.

 

I am venturing into VBA as it appears that this is the only way I can achieve what I want.

 

Ok here goes.

 

On the Incoming Finance work sheet there are a lot of rows that have very little data in them. This is OK as all entries on this sheet are manual. What i want to do is hide rows if the date is in the past and the column E is empty for that date.

 

I tried creating the following in VBA

 

Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Activate
If Not Application.Intersect(Range("A1"), Range(Target.Address)) Is Nothing Then
Select Case Target.Value
Case Is = "Hide": Rows("5:10").EntireRow.Hidden = True
Case Is = "Unhide": Rows("5:10").EntireRow.Hidden = False
End Select
End If
End Sub

 

This works when I type Hide or Unhide in cell A1.

 

I want to modify this to say the following:

 

If Cell (B5) <= TODAY() and Cell (E5) <>0 then Row("5").EntireRow.Hidden = True

 

But I want to do this for all rows in the worksheet.

 

Are you willing to take on this challenge.

 

Best Regards

 

Vonryan

I’m sorry. VBA is not my forte.

Hi @Twifoo 

 

Thanks for getting back to me. Again I am grateful for all of your help so far. I will use the community to see if anyone can help.

 

Regards

 

Vonryan