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 / March 2008

Tip: Looking for answers? Try searching our database.

Using formula based on text in a different cell

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Pettress - 25 Mar 2008 23:38 GMT
Hello. I have a list of calculations that I have to perform each week and I
decided to use excel to simplify the task. I will use generic examples. I
have a group of agents which call on any of 4 different programs. We will
say program A-D. Each program has a different goal. Each agent has an
average sales per hour for the week. Instead of pasting in a specific
formula for each different program, I want to be able to have excel
determine which formula to use based on what program.

               A                   B                   C                 D

1       John Doe           ProgA             SPH            %ofGoal
2       Jane Doe           ProgB              SPH            %ofGoal
3       Dick Doe           ProgC             SPH            %ofGoal
4       Harry Doe         ProgD             SPH             %ofGoal

I want to be able to do the following.

If the text in column B = ProgA then divide the value in column C by GoalA
to find %ofGoal
If the text in column B = ProgB then divide the value in column C by GoalB
to find %ofGoal
etc.

I have come up with something like

=IF(B2:B56=ProgA,"=SUM(C$2:C$56/GoalA)")

but it doesn't work and it only checks for one possibility

Is what I want to do even possible? I have my spreadsheet set up so far so
that I can copy paste the information from our intranet and I have named
cells which you just enter the value for goal each week since it changes.
(GoalA, GoalB, etc.)

Signature

Thank You

Jason Pettress
On Site Technical Support
Global Contact Services
2200 Main Street, 3rd Floor
Wheeling WV, 26003
Phone: (304)232-7181
Fax: (304)232-7186‎

Jason Pettress - 26 Mar 2008 00:25 GMT
I actually figured it out myself through trial and error. I'm new to excel
so Im patting myself on the back right now, lol.

=IF(B2:B56=MGRP,SUM(N$2:N$56/GoalMGRP),IF(B2:B56=DBOA,SUM(N$2:N$56/GoalDBOA),IF(B2:B56=COOB,SUM(N$2:N$56/GoalCOOB),IF(B2:B56=MCHS,SUM(N$2:N$56/GoalMCHS),IF(B2:B56=SBBA,SUM((E$2:E$56/L$2:L$56)/GoalSBBA))))))

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.