Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

Excel VBA - If, then, else multiple tabs and multiple columns

$
0
0
Hi - I am new to vba and have an excel file with multiple tabs but only concerned with 2
"Subs_Reds" and "Rec"

On tab “Subs_Reds” –
Column C is “Name” – this will vary
Column E will be “Subscription” or “Redemption”
Column F is “Class “– this will vary from “A” through “G”
Column G is “Series” – this will vary from 1 through ????
Column J is “Amount” - will be a varying number

On tab “Rec” –
Column A is “Name” – this will vary
Column B is “Series” – this will vary from 1 through ????
Column D is “Class” – this will vary from A through E
Column L is “Amount” - will be a varying number

What I would like to do is if the word “subscription” occurs in Column E on "Subs_Reds" tab I want to look to “Rec” tab to see if that Name, Class, and Series already exists (all conditions need to be met and exact). If it exists copy “Amount” from Column J on Subs_Reds tab to Column L to that row on “Rec” tab

Likewise with word "subscription" occurrence - If Name, Class, and Series does NOT exists on Rec tab (all conditions need to be met and exact), insert a row below the last occurrence of Class and Series and copy formulas from Column C through Column AW down to newly created line. Column A and Column B will need to be Investor name and Series from “Subs_Reds” tab

(i.e. If subscription is for Name “Sam” – Class “A” - Series “104”, I would like to insert a line after line Class "A" Series "99" which is the lastest series in "Rec" tab – Column A on "Rec" tab should be “Sam” - Column B should be “104” - and Columns C through AW should be copied from line above as there are formulas in some of those Columns.)

Any help will be greatly appreciated!

Viewing all articles
Browse latest Browse all 50070

Trending Articles