LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chiliman
 
Posts: n/a
Default adding more than one value to cells


I understand what you are saying, but only partially. I do not see how
that would work, though I may be missing it.

What I need the formula to do is look at the cells preceeding it in the
row, and based on a list of job codes determine what job codes are
listed in that row, then determine what value is assigned to them, and
add those values.

I believe that I have roughly worked out the logic to do this which I
will attempt to write out in english here.

#1: I want the cell (let's say cell A4) to "think": "Is there a job
code in cell A1 that is found in the job code list? Yes, it is "Bar".
Ok then, what is the number associated with that job code? It is 8.
Store the number 8. Now, is there a job code in cell A2 that is found
in the list? No. Is there a job code in cell A3 that is found in the
list? Yes, it is "Section A." What is the number associated with that
job code? It is 6. Store the number 6. Any more cells? No. Now what is
the sum of all the numbers that I have found. It is 14. I display the
number 14. "

So basically this is the "does the value in Cell "whatever" match a
value in a certain list, and if so, what is the number associated with
that value" method.

This may not be the only logic to determine this information, but
basically the formula needs to evaluate each cell that preceeds it,
determine if the value in each cell matches a value in a list, and then
assign a number to those values that match, and add the numbers then
display the sum.

I understand that I will have to make two lists: the first is a job
code list, and directly next to it will be a list of numbers associated
with each code, so that if in cell A20 I have "bar," then in cell B20 I
have "8." And if in cell A21 I have "Section A," then in cell B21 I
have "6." And so on.

Thanks again!


--
chiliman
------------------------------------------------------------------------
chiliman's Profile: http://www.excelforum.com/member.php...o&userid=34567
View this thread: http://www.excelforum.com/showthread...hreadid=543378

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding specific cells Shooter Excel Worksheet Functions 1 January 23rd 06 04:42 PM
adding cells after stripping numbers out of text fields Alan Excel Discussion (Misc queries) 1 August 24th 05 08:22 PM
Adding contents of cells by clicking in Excel 2002 Kevin Gordon Excel Discussion (Misc queries) 7 January 11th 05 04:49 PM
Adding formatted cells to an outline ? Glenn Excel Discussion (Misc queries) 4 January 11th 05 04:10 PM
ADDING CELLS WHICH ARE <> THAN OTHER CELLS boogie Excel Worksheet Functions 2 November 25th 04 02:41 PM


All times are GMT +1. The time now is 04:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"