Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zabedi@gmail.com - 16 Nov 2006 22:07 GMT
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
Dave Peterson - 16 Nov 2006 23:54 GMT
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.)

> Hi,
>
[quoted text clipped - 22 lines]
>
> Zak

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.