Help with Formula

Siops

Board Regular
Joined
Sep 8, 2011
Messages
80
Hi guys. Could you please help me? I need help on what formula will I use if I need to find and show IF..

If Column B has a value of 1 (Column K), it will show Column L or M.

I tried the IFVlookup formula but it only shows the first match. Please help. Will greatly appreciate it. Thanks!



ExcelHelp.jpg
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
try something like
in L3 as
=IF(E3=1,"absent",IF(H3=1,"leave",""))

and in m3
=IF(E3=1,A3,IF(H3=1,A3,""))

an iff statement

if "cond", "true","False"
the true or false mav be filled with more amd more if starements
each with its what to do if true or false.
for bigun draw a yes no tree diagram to get the logic right

=if(B4=7,if(k8=6,l6="b4 was 7 and k8 was 6",i ete etc etc
 
Upvote 0
Assuming no values are duplicated (an agent can't be "absent" and "suspended" at the same time):
=IF(ISNA(MATCH(1,$C3:$J3,0)),"",INDEX($C$2:$J$2,1,MATCH(1,$C3:$J3,0)))

(Insert above in cell L2)
 
Upvote 0
Hi and welcome,

Not sure if i understood correctly what you are looking for.

See if this helps

Formula in L3
=IF(K3=0,"",INDEX($C$2:$J$2,MATCH(1,C3:J3,0)))
copy down

Formula in M3
=IF(K3=0,"",A3)
copy down

M.
 
Upvote 0
Thank you guys for the reply. I think I did not clear my statement. Anyway, the screenshot is the raw data. Now lets say on Column N, I need to vlookup the Agent(Column B) with a value of 1(Column K) and will show the Column L or M.

My problem is when I use the vlookup, it will only show the first match. But what I need to get the is the first instance with a value of 1. On Column B, I have 4 "AGENT1" value.

Sep-1, AGENT1, 0(ColumnK)
Sep-2, AGENT1, 1(ColumnK)
Sep-3, AGENT1, 0(ColumnK)
Sep-4, AGENT1, 1(ColumnK)
 
Upvote 0
Assuming the date is in N1, and the Agent is in O1, the following formula will find that agent for that date, and return the value in column L.

=SUMPRODUCT(($A$1:$A$65535=$N1)*($B$1:$B$65535=$O1),$L$1:$L$65535)

If this is not what you want, you need to be clearer about what you're looking for.
 
Upvote 0

Forum statistics

Threads
1,224,520
Messages
6,179,267
Members
452,902
Latest member
Knuddeluff

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