I need help with comparing values in Excel and retrieving!!!

Z

zabedi

Hi,

I have absolutely no idea where to start!!!! I know it's simple but
I've never done this before...I needed to figure out how to compare
values in a row and retrieve a value if the condition is true. However
if more than one values meets that condition, I need it to remain
blank...

Like for the following example, since only the Accounting Linksys field
is occupied, the Business Unit field should return the value
"Accounting"...

Vendor Accounting Finance IT Business Unit
Linksys $30,000,000 Accounting

But if the row contains more than one value, the Business Unit field
should remain blank...
Vendor Accounting Finance IT Business Unit
Unix $40,000 $5,000 $300 --
Lycos

Can anyone help me??

Thank you so much!

Zak
 
D

Dave Peterson

Assuming that the headers are in A1:E1:

Put this in E2:

=IF(COUNTA(B2:D2)<>1,"",INDEX($B$1:$D$1,MATCH(TRUE,B2:D2<>"",0)))

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top