Hi all,
I am trying to use a nested IF function but it won’t work (most likely user error) I was hoping for some direction in getting the function to work the way I want it. I am using Excel 2007.
I have two sheets of data
Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]a
[/TD]
[TD]b
[/TD]
[TD]c
[/TD]
[TD]d
[/TD]
[TD]e
[/TD]
[/TR]
[TR]
[TD]Site
[/TD]
[TD]des
[/TD]
[TD]rep
[/TD]
[TD]LOTU
[/TD]
[TD]count
[/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD]x
[/TD]
[TD]12
[/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD]y
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]out
[/TD]
[TD]1
[/TD]
[TD]y
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]out
[/TD]
[TD]1
[/TD]
[TD]z
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]124
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD]w
[/TD]
[TD]5
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]a
[/TD]
[TD]b
[/TD]
[TD]c
[/TD]
[TD]d
[/TD]
[TD]e
[/TD]
[TD]f
[/TD]
[TD]g
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD]Site
[/TD]
[TD]Des
[/TD]
[TD]Rep
[/TD]
[TD]LOTU
[/TD]
[TD]w
[/TD]
[TD]x[/TD]
[TD]y[/TD]
[TD]z
[/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]out
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Ideally I would like the counts to show up in the proper LOTU column on the second sheet by entering the equation once and being able to drag and drop. I tried this equation =IF(and(sheet1a=sheet2a2,sheet1b=sheet2b2,sheet1c=sheet2c2, sheet1d=sheet2e1), sheet1e2)
The equation had all the proper freezes in place to allow for dragging and dropping but I only ever got blank cells. When I would break out each step or a couple of steps they always worked. I'm not sure what I am doing wrong but whatever help I can get would be very much appreciated.
Thanks in advance!!!
I am trying to use a nested IF function but it won’t work (most likely user error) I was hoping for some direction in getting the function to work the way I want it. I am using Excel 2007.
I have two sheets of data
Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]a
[/TD]
[TD]b
[/TD]
[TD]c
[/TD]
[TD]d
[/TD]
[TD]e
[/TD]
[/TR]
[TR]
[TD]Site
[/TD]
[TD]des
[/TD]
[TD]rep
[/TD]
[TD]LOTU
[/TD]
[TD]count
[/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD]x
[/TD]
[TD]12
[/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD]y
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]out
[/TD]
[TD]1
[/TD]
[TD]y
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]out
[/TD]
[TD]1
[/TD]
[TD]z
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]124
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD]w
[/TD]
[TD]5
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]a
[/TD]
[TD]b
[/TD]
[TD]c
[/TD]
[TD]d
[/TD]
[TD]e
[/TD]
[TD]f
[/TD]
[TD]g
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD]Site
[/TD]
[TD]Des
[/TD]
[TD]Rep
[/TD]
[TD]LOTU
[/TD]
[TD]w
[/TD]
[TD]x[/TD]
[TD]y[/TD]
[TD]z
[/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]out
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]234
[/TD]
[TD]in
[/TD]
[TD]1
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Ideally I would like the counts to show up in the proper LOTU column on the second sheet by entering the equation once and being able to drag and drop. I tried this equation =IF(and(sheet1a=sheet2a2,sheet1b=sheet2b2,sheet1c=sheet2c2, sheet1d=sheet2e1), sheet1e2)
The equation had all the proper freezes in place to allow for dragging and dropping but I only ever got blank cells. When I would break out each step or a couple of steps they always worked. I'm not sure what I am doing wrong but whatever help I can get would be very much appreciated.
Thanks in advance!!!