Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
j4ymf
 
Posts: n/a
Default VLOOKUP code needed please


hello
i have attached a file so you can see what my problem is
http://www.excelforum.com/attachment...d=114219047 1

what i need to be able to do is calculate all the good and bad figures

can anyone help me with a script

many thanks jason

ie:
35187 Good
17096 Good
4424 Good
3091 Good
2455 Good
2023 Good
1121 Good
691 Good
= 66088 etc

55 Bad
9388 Bad
5620 Bad
3498 Bad
3093 Bad
2120 Bad
1501 Bad
1073 Bad
788 Bad
762 Bad
275 Bad
275 Bad

=28448

so i need a code that looks for all the good and adds them up
and like wise with the bad

thanks


+-------------------------------------------------------------------+
|Filename: VLOOKUP problem.JPG |
|Download: http://www.excelforum.com/attachment.php?postid=4447 |
+-------------------------------------------------------------------+

--
j4ymf
------------------------------------------------------------------------
j4ymf's Profile: http://www.excelforum.com/member.php...o&userid=32389
View this thread: http://www.excelforum.com/showthread...hreadid=521529

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
davesexcel
 
Posts: n/a
Default VLOOKUP code needed please


=SUMIF(B5:B26,C3,A5:A26)
this example
c3 was the criteria ie:Good or Bad

B5:B26 is either good or bad

A5:A26 had the values to add up


--
davesexcel
------------------------------------------------------------------------
davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708
View this thread: http://www.excelforum.com/showthread...hreadid=521529

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard Buttrey
 
Posts: n/a
Default VLOOKUP code needed please

On Sun, 12 Mar 2006 13:15:59 -0600, j4ymf
wrote:


hello
i have attached a file so you can see what my problem is
http://www.excelforum.com/attachment...d=114219047 1

what i need to be able to do is calculate all the good and bad figures

can anyone help me with a script

many thanks jason

ie:
35187 Good
17096 Good
4424 Good
3091 Good
2455 Good
2023 Good
1121 Good
691 Good
= 66088 etc

55 Bad
9388 Bad
5620 Bad
3498 Bad
3093 Bad
2120 Bad
1501 Bad
1073 Bad
788 Bad
762 Bad
275 Bad
275 Bad

=28448

so i need a code that looks for all the good and adds them up
and like wise with the bad

thanks


+-------------------------------------------------------------------+
|Filename: VLOOKUP problem.JPG |
|Download: http://www.excelforum.com/attachment.php?postid=4447 |
+-------------------------------------------------------------------+



A simple SUMIF(B:B,"Good",A:A") will achieve that. Replace Good with
"Bad" for the other condition.

Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default VLOOKUP code needed please

=SUMIF($D$1:$D$50,"Good",$C$1:$C$50)

replace good with bad to get those values as well

--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"j4ymf" wrote in
message ...

hello
i have attached a file so you can see what my problem is
http://www.excelforum.com/attachment...d=114219047 1

what i need to be able to do is calculate all the good and bad figures

can anyone help me with a script

many thanks jason

ie:
35187 Good
17096 Good
4424 Good
3091 Good
2455 Good
2023 Good
1121 Good
691 Good
= 66088 etc

55 Bad
9388 Bad
5620 Bad
3498 Bad
3093 Bad
2120 Bad
1501 Bad
1073 Bad
788 Bad
762 Bad
275 Bad
275 Bad

=28448

so i need a code that looks for all the good and adds them up
and like wise with the bad

thanks


+-------------------------------------------------------------------+
|Filename: VLOOKUP problem.JPG |
|Download: http://www.excelforum.com/attachment.php?postid=4447 |
+-------------------------------------------------------------------+

--
j4ymf
------------------------------------------------------------------------
j4ymf's Profile:
http://www.excelforum.com/member.php...o&userid=32389
View this thread: http://www.excelforum.com/showthread...hreadid=521529


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
j4ymf
 
Posts: n/a
Default VLOOKUP code needed please


thanks dave you are the kiddie

just what i needed


--
j4ymf
------------------------------------------------------------------------
j4ymf's Profile: http://www.excelforum.com/member.php...o&userid=32389
View this thread: http://www.excelforum.com/showthread...hreadid=521529

Reply
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
can you entre a bar code into a excel cell? basinghughes Excel Worksheet Functions 2 September 9th 05 07:32 PM
School-boy secret code help needed Anthony Slater Excel Discussion (Misc queries) 5 May 23rd 05 03:56 PM
Sumproduct with a vLookup, multiple criteria Tom F Excel Worksheet Functions 3 May 6th 05 05:28 PM
Make Change Case in Excel a format rather than formula Kevin Excel Worksheet Functions 1 March 18th 05 09:53 PM
formula / code help needed Paul Watkins Excel Discussion (Misc queries) 2 March 16th 05 09:27 PM


All times are GMT +1. The time now is 04:21 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"