Forum Discussion

nattiej101's avatar
nattiej101
Brass Contributor
Dec 14, 2022
Solved

How to use an if and statement

I am trying to link a bunch of tabs together in excel - but I'm not sure the best formula to reuse over and over to get the input.  

 

Here is an example of what I'm working with:

 

Tab 1:

LocationGroupJanuary 1January 2January 3
Aaa   
Abb   
Bcc   

 

Tab 2:

LocationGroupJanuary 1January 2January3
Aaa054
Abb002
Bcc10020

 

I have a tab (like tab 2) for each month. So I have 13 tabs in total that I am working with.

 

I would like to combine all of this information onto one tab (tab1).  How would I create a formula to connect these together?  

 

This is what I created at first, but it won't drag and paste.  Thanks in advance.

=IF(AND('tab1'!C2='tab2'!E$3,'tab1'!$C4='tab2'!B3),'tab2'!E4,'tab2'!E4)

3 Replies

Resources