LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum of a range of cells that include cells using LOOKUP

Don't know if I worded my subject correctly...anyhow:

I've made a spreadsheet listing employee benefits.

B C D
1 John 1
=lookup(C1,{1,2,3,5},{"40.55","77.86","130.34","77 .86"})
2 Mary 3
=lookup(C1,{1,2,3,5},{"40.55","77.86","130.34","77 .86"})

So, in John's column B) case, he is covering only one person in his
benefits(column C), so his premium (column D) would be 40.55; and Mary is
covering 3 people in her benefits, so her premium would be 130.34; etc...

Columns E - F are text (notes).

Column G contains various adjustments (not every employee has adjustments)
to the month's particular bill. For example, John may have been credited
(20.55) this month because he was overcharged the previous month. Mary,
however, has no adjustments.

Column H will total the monthly premium charge of the respective employee
(including charges and adjustments)--so the formula in column H will be
=sum(D1:G1) for John, but since Mary has no adjustments, H2 will be =D2.

Here is my problem: I am trying to sum H1:H57 and it is not working at all.
I should be getting the figure $2,499.59, but the formula is resulting in
$57.75 for some reason. I am thinking this has to do with the fact that
Column H depends upon a sum from Column D which utilizes the LOOKUP function.
How can I get an total for the actual values in Column H (without having to
individually click in each individual cell, press F2, then press F9, then
press Enter)?
 
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
trouble with lookup in a range of cells. evilthorne Excel Worksheet Functions 5 September 28th 09 02:16 AM
The total of a couple cells and only include one of the cells if Jennifer Excel Discussion (Misc queries) 3 April 18th 07 07:43 AM
Do the values in a range of cells include all members of a set? Dave Excel Discussion (Misc queries) 5 May 26th 06 09:36 PM
How do I include only visible cells in a range? Frequent User Excel Worksheet Functions 1 November 28th 05 04:31 PM
sum a range of cells that include an error HeatherC Excel Discussion (Misc queries) 2 January 28th 05 10:58 AM


All times are GMT +1. The time now is 11:54 PM.

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"