The formula you have sent is working but the problem over here is the date 
when i copy 02/06/2015 from another sheet and paste the same in 
TRANSANCTION sheet, then it is over write on the previous one. Now I'm 
sending 4 days transanction to you just apply such a formula when i copy 
transanction from another sheet for 05/06/2015, this transanction must be 
in the 05/06/2015 of PETTY CASH SHEET, just do this and nothing else and 
let me do it further for myself.

NOTE:
keep in mind, when i'll copy the transanction of 05/06/2015, i'll delete 
the 01/06/2015 transanction and paste the 05/06/2015 on it, so the formula 
now you will provide must be such that when i"ll do the above it does not 
disturb the sheet, and i'm sure you understand my point.

THANKS IN ADVANCE





On Friday, 21 August 2015 18:24:07 UTC+5, Paul Schreiner wrote:
>
> What are the other sheet names for each day?
> They can't all be called "Transaction".
>
> Are you looking for a macro solution? or Excel formulas?
>
> the issue here is that for each ROW of data, you have to predict what the 
> source transaction sheet name will be.
>
> For example, in Cell C4, you need the value of the "Misc" row from the 
> sheet with 6/1/2015 data.
>
> technically: "Misc" is from the heading row 2, column C, and the date 
> (6/1/2015) is from column B
>
> So, if the sheet for 6/1/2015 is called "transaction",
> then you can use a simple vlookup in cell C4:
> =VLOOKUP(C$2,transaction!$A$2:$B$55,2,FALSE)
>
> But the problem is: if the heading value doesn't appear in the sheet, you 
> get a return value of "#N/A", which messes up your total.
>
> So, you have to "wrap" this function with an IFERROR() function.
>
> IFERROR evaluates the function. if it is successful, it returns the value 
> from the function. If not, it does whatever you tell it to.
> In this case, return "nothing".
> So you end up with: 
> =IFERROR(VLOOKUP(C$2,transaction!$A$2:$B$55,2,FALSE),"")
> You drag it across and everything looks great.
>
> So, now you need to decide how the sheet name is going to be determined.
>
> this is where it gets kind-of tricky.
> I a can give you an EXAMPLE (and idea as to how *I* would do it)
> but without knowing what your sheet names look like, it's just guesswork 
> on my part.
>
> Let's say that for 6/1/2015 your transaction sheet is called:
> "transaction_06.01.2015"
>
> That sheet name can be concatenated (strung together)
> by combining "transaction_" and the date from B4.
> But, Excel says the value in B4 is: 42156 !!
> (which is the number of days since 1/1/1900)
>
> So, you need to convert it to mm.dd.yyyy format.
> You do that with the Text() function.
>
> So, the sheet name becomes:
> "transaction_" & TEXT($B4,"mm.dd.yyyy")
>
> Now, to get the Excel formula to process this string as a cell reference, 
> you have to use the INDIRECT() function.
>
> So, the previous formula:
>
> =IFERROR(VLOOKUP(C$2,transaction_06.01.2015!$A$2:$B$50,2,FALSE),"")
>
> becomes:
>
>
> =IFERROR(VLOOKUP(C$2,INDIRECT("transaction_"&TEXT($B4,"mm.dd.yyyy")&"!$A$2:$B$55"),2,FALSE),"")
>
> You drag THAT across and down.
>
> Then, as long as the new sheets are named in the proper format:
> "transaction_mm.dd.yyyy", then the Petty Cash sheet will update 
> appropriately.
>
> If you can give me the proper sheet name format, I could make sure the 
> formula is corrected.
>
> *Paul*
>
>
> -----------------------------------------
>
>
>
>
>
>
>
> *“Do all the good you can,By all the means you can,In all the ways you 
> can,In all the places you can,At all the times you can,To all the people 
> you can,As long as ever you can.” - John Wesley*
> -----------------------------------------
>
> ------------------------------
> *From:* Izhar <izhar...@gmail.com <javascript:>>
> *To:* excel-...@googlegroups.com <javascript:> 
> *Sent:* Friday, August 21, 2015 7:14 AM
> *Subject:* $$Excel-Macros$$ help required in petty cash transanction
>
> in this workbook, I have two worksheets namely PETTY CASH SHEET and 
> TRANSANCTION, I need a formula through which I may be able to transfer 
> amount from TRANSANCTION sheet to PETTY CASH SHEET in the date and 
> respective accounts mentioned in the TRANSANCTION sheet, in this workbook 
> I've provided only one day data, in the same way I've mentioned more data 
> for the next date i.e. 02/06/2105 and so on till the last of the month.  In 
> PETTY CASH SHEET I've colorized row 4 in which the above data i.e. 
> 01/06/2015 will be enter in the respective account.  Furthermore, the 
> transanction shown in the TRANSANCTION sheet must be changed in the next 
> date i.e. it may be four or it may twenty so please take note of it.
>
> Thanks in advance.
>
>
> -- 
> *Izhar Ul Haq*
>
>
>
> Cell# 009203069072597
> -- 
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
> https://www.facebook.com/discussexcel
>  
> FORUM RULES
>  
> 1) Use concise, accurate thread titles. Poor thread titles, like Please 
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice 
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security 
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>  
> NOTE : Don't ever post confidential data in a workbook. Forum owners and 
> members are not responsible for any loss.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to excel-macros...@googlegroups.com <javascript:>.
> To post to this group, send email to excel-...@googlegroups.com 
> <javascript:>.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Attachment: petty cash.xlsx
Description: MS-Excel 2007 spreadsheet

Reply via email to