Home

Help with Lookup Function

%3CLINGO-SUB%20id%3D%22lingo-sub-740577%22%20slang%3D%22en-US%22%3EHelp%20with%20Lookup%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-740577%22%20slang%3D%22en-US%22%3E%3CP%3EAt%20least%20I%20believe%20it's%20a%20look%20up%20function.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20check%20register%20that%20has%20a%20tab%20for%20each%20month%20of%20the%20year.%26nbsp%3B%20Each%20tab%20has%20a%20column%20for%20the%20status%20of%20each%20transaction%20(%22c%22%20for%20cleared%2C%20%22u%22%20for%20uncleared).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20lookup%20function%20that%20I%20could%20use%20to%20copy%20a%20transaction%20to%20the%20tab%20for%20the%20next%20month%20if%20it%20has%20a%20status%20of%20uncleared%3F%26nbsp%3B%20Perhaps%20a%20formula%20isn't%20even%20the%20correct%20method%2C%20maybe%20something%20in%20VBA%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20attached%20my%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-740577%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-749092%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20with%20Lookup%20Function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-749092%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F328864%22%20target%3D%22_blank%22%3E%40Trisa58%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20a%20formula%20that%20I%20put%20in%20July%20cell%20A23%20and%20copied%20down%20and%20across%3A%3C%2FP%3E%3CP%3E%3DIFERROR(INDEX(June!A%243%3AA%2430%2CAGGREGATE(15%2C6%2C(ROW(A%243%3AA%2430)-ROW(A%243)%2B1)%2F(June!%24I%243%3A%24I%2430%3D%22u%22)%2CROWS(A%2423%3AA23)))%2C%22%22)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20written%2C%20the%20formula%20is%20checking%20rows%203%20to%2030%20of%20June%20worksheet%20for%20uncleared%20items.%20If%20any%20are%20found%2C%20it%20returns%20the%20associated%20value%20from%20each%20column.%20When%20the%20list%20of%20uncleared%20items%20is%20exhausted%2C%20the%20formula%20will%20return%20an%20empty%20string%20(looks%20like%20a%20blank).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%20that%20if%20the%20corresponding%20cell%20in%20June%20is%20blank%2C%20a%20value%20of%200%20will%20be%20returned.%20If%20the%20receiving%20cell%20is%20formatted%20as%20a%20date%2C%20it%20will%20appear%20as%201%2F0%2F1900.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Trisa58
Occasional Contributor

At least I believe it's a look up function.

 

I have created a check register that has a tab for each month of the year.  Each tab has a column for the status of each transaction ("c" for cleared, "u" for uncleared).  

 

Is there a lookup function that I could use to copy a transaction to the tab for the next month if it has a status of uncleared?  Perhaps a formula isn't even the correct method, maybe something in VBA?

 

I've attached my file.

1 Reply

@Trisa58 

Here is a formula that I put in July cell A23 and copied down and across:

=IFERROR(INDEX(June!A$3:A$30,AGGREGATE(15,6,(ROW(A$3:A$30)-ROW(A$3)+1)/(June!$I$3:$I$30="u"),ROWS(A$23:A23))),"")

 

As written, the formula is checking rows 3 to 30 of June worksheet for uncleared items. If any are found, it returns the associated value from each column. When the list of uncleared items is exhausted, the formula will return an empty string (looks like a blank).

 

Note that if the corresponding cell in June is blank, a value of 0 will be returned. If the receiving cell is formatted as a date, it will appear as 1/0/1900.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies