Try to use a if then

rcirone

Active Member
Joined
Mar 12, 2009
Messages
457
I am trying to get info from one tab to another tab.

I am on sheet2 and try to get column INFO OFF OF SHEET1

=(SHEET1!B:B=SHEET1!G2,SHEET1!A:A) ALL i GET IS #VALUE! ERROR

manager
agentprojectoutreasonhoursAgent2
DuranAndrewInboundCall OutFMLA8Andrew
DuranAndrewInboundCall OutFMLA8Constance
DuranCurtisInboundCall OutFMLA8Curtis
DuranConstanceInboundLateTires0.2Greg
DuranConstanceInboundLateLate from Lunch1.5Pauline
JohnGreg AdkinsInboundLateLate from lunch0.5Sara

<tbody>
</tbody>
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Code:
=(
     SHEET1!B:B=SHEET1!G2,        ...  this compares column B to cell G2  
                                                       (true if value of G2 is found in column B
 
     SHEET1!A:A                           ...  adding this makes it an invalid command
)

i think that you need

=IF( comparison , value if true , value if false)

=IF( SHEET1!B:B=SHEET1!G2, SHEET1!A:A)    ... no "if false" value, which is ok
 
Upvote 0
All i understand from your post is that you are trying to find the match between agents and if matched who would be the manager. And the formula i pasted does exactly that.
 
Upvote 0
VDS1, that works but his format is different, requires 2 sheets. You can VLOOKUP backwards.

Excel 2010
ABCDEF
1manageragentprojectoutreasonhours
2DuranAndrewInboundCall OutFMLA8
3DuranAndrewInboundCall OutFMLA8
4DuranCurtisInboundCall OutFMLA8
5DuranConstanceInboundLateTires0.2
6DuranConstanceInboundLateLate fromLunch1.5
7JohnGregAdkinsInboundLateLate from lunch0.5

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



Excel 2010
AB
1Agent2
2AndrewDuran
3ConstanceDuran
4CurtisDuran
5Greg
6Pauline
7Sara

<tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B2=IFERROR(VLOOKUP(A2,CHOOSE({1,2},Sheet1!$B$2:B$7,Sheet1!A$2:A$7),2,FALSE),"")
B3=IFERROR(VLOOKUP(A3,CHOOSE({1,2},Sheet1!$B$2:B$7,Sheet1!A$2:A$7),2,FALSE),"")
B4=IFERROR(VLOOKUP(A4,CHOOSE({1,2},Sheet1!$B$2:B$7,Sheet1!A$2:A$7),2,FALSE),"")
B5=IFERROR(VLOOKUP(A5,CHOOSE({1,2},Sheet1!$B$2:B$7,Sheet1!A$2:A$7),2,FALSE),"")
B6=IFERROR(VLOOKUP(A6,CHOOSE({1,2},Sheet1!$B$2:B$7,Sheet1!A$2:A$7),2,FALSE),"")
B7=IFERROR(VLOOKUP(A7,CHOOSE({1,2},Sheet1!$B$2:B$7,Sheet1!A$2:A$7),2,FALSE),"")

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
This is what I am trying and it still does not work

=IF(Sheet1!I2=Sheet1!D:D,Sheet1!C:C,"Not Matching")


Agent2 is the field I need as the main name so I can lookup the info A:A to H:H
just try to find is manager.
 
Upvote 0

Forum statistics

Threads
1,203,078
Messages
6,053,403
Members
444,662
Latest member
AaronPMH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top