#1   Report Post  
Posted to microsoft.public.excel.misc
phil2006
 
Posts: n/a
Default Condensing Formula


Is it possible to condense the following formula as it is too long.
=SUM(IF(sheet1!$A$3=B11,sheet1!B$3)+IF(sheet1!$A$4 =B11,sheet1!B$4)+IF(sheet1!$A$5=B11,sheet1!B$5)).. .etc
The problem is that I have around 160 rows on sheet 1 which need adding
in.


Thanks

Phil


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=549415

  #2   Report Post  
Posted to microsoft.public.excel.misc
Zygan
 
Posts: n/a
Default Condensing Formula


i assume they all need to equal b11 and if so then add them up
try this

where a1:a26 is your sum range

=SUMIF(A1:A26,B11,A1:A26)


--
Zygan
------------------------------------------------------------------------
Zygan's Profile: http://www.excelforum.com/member.php...o&userid=34423
View this thread: http://www.excelforum.com/showthread...hreadid=549415

  #3   Report Post  
Posted to microsoft.public.excel.misc
hans bal(nl)
 
Posts: n/a
Default Condensing Formula

use = SUMIF(sheet1!A3:A160,B11,sheet1!B3:B160)

( assuming that you have 160 rows.)


"phil2006" wrote:


Is it possible to condense the following formula as it is too long.
=SUM(IF(sheet1!$A$3=B11,sheet1!B$3)+IF(sheet1!$A$4 =B11,sheet1!B$4)+IF(sheet1!$A$5=B11,sheet1!B$5)).. .etc
The problem is that I have around 160 rows on sheet 1 which need adding
in.


Thanks

Phil


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=549415


  #4   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Condensing Formula

This is a little different, but I think will return the result you
seek..........

=IF(ISNA(VLOOKUP(B11,Sheet1!A:A,1,FALSE)),"Not
Listed",VLOOKUP(B11,Sheet1!A:A,1,FALSE))

Vaya con Dios,
Chuck, CABGx3



"phil2006" wrote:


Is it possible to condense the following formula as it is too long.
=SUM(IF(sheet1!$A$3=B11,sheet1!B$3)+IF(sheet1!$A$4 =B11,sheet1!B$4)+IF(sheet1!$A$5=B11,sheet1!B$5)).. .etc
The problem is that I have around 160 rows on sheet 1 which need adding
in.


Thanks

Phil


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=549415


  #5   Report Post  
Posted to microsoft.public.excel.misc
phil2006
 
Posts: n/a
Default Condensing Formula


Thankyou very much! I'm finally starting to get somewhere!


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=549415



  #6   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Condensing Formula

Sorry, I misread your post. Didn't see the + signs, thought they were just
the regular things my eyes see this time of a morning <g

Vaya con Dios,
Chuck, CABGx3



"CLR" wrote:

This is a little different, but I think will return the result you
seek..........

=IF(ISNA(VLOOKUP(B11,Sheet1!A:A,1,FALSE)),"Not
Listed",VLOOKUP(B11,Sheet1!A:A,1,FALSE))

Vaya con Dios,
Chuck, CABGx3



"phil2006" wrote:


Is it possible to condense the following formula as it is too long.
=SUM(IF(sheet1!$A$3=B11,sheet1!B$3)+IF(sheet1!$A$4 =B11,sheet1!B$4)+IF(sheet1!$A$5=B11,sheet1!B$5)).. .etc
The problem is that I have around 160 rows on sheet 1 which need adding
in.


Thanks

Phil


--
phil2006
------------------------------------------------------------------------
phil2006's Profile: http://www.excelforum.com/member.php...o&userid=35092
View this thread: http://www.excelforum.com/showthread...hreadid=549415


  #7   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Condensing Formula

Hi Phil,

=SUMPRODUCT(--(sheet1!A3:A162=B11),sheet1!B3:B162)

You will need SUMPRODUCT if you ever introduce more than one sumif
criterion...

HTH,
Bernd

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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

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

About Us

"It's about Microsoft Excel"