Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
britgirl
 
Posts: n/a
Default This formula needs to be more compact.


Hi all, I have another formula that I would like some assistance with.


Currently I use about 14 income accounts, all of which have a unique 2
letter code to define them.

I have a spreadsheet that's about 30 lines deep per day with the
different incomes listed, and a set of corresponding formulas to pick
out each one by name underneath. What I have does work, but it's very
large & very cumbersome to edit. I was wondering if there was a way to
make the formula more user friendly for times when I need to make more
income lines.

I just used a basic =IF formula and repeated it...

=IF(C5 ="IN",B5,0)+IF(C6 ="IN",B6,0)+IF(C& ="IN",B6,0) ad nauseum all
the way through each of 30 lines, and each of 14 different 2 letter
codes.

As I said, it does work, but it's a royal pain if you need to make
changes etc.

Any ideas?

Thanks


--
britgirl
------------------------------------------------------------------------
britgirl's Profile: http://www.excelforum.com/member.php...o&userid=29957
View this thread: http://www.excelforum.com/showthread...hreadid=496843

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Govind
 
Posts: n/a
Default This formula needs to be more compact.

Hi,

Why not use SUMIF For eg.

=SUMIF(C$5:C$100,"IN",B$5:B$100)

You dont even have to specify "IN" within quotes if you have that in a
separate cell. If the code "IN" is specified in cell say D5, then you
can use

=SUMIF(C$5:C$100,D5,B$5:B$100)

This is a dynamic formula so if the other codes are in cells D6,D7 etc,
you can just copy this down and it would automatically compute the sum
for other codes as well.

Regards

Govind.

britgirl wrote:

Hi all, I have another formula that I would like some assistance with.


Currently I use about 14 income accounts, all of which have a unique 2
letter code to define them.

I have a spreadsheet that's about 30 lines deep per day with the
different incomes listed, and a set of corresponding formulas to pick
out each one by name underneath. What I have does work, but it's very
large & very cumbersome to edit. I was wondering if there was a way to
make the formula more user friendly for times when I need to make more
income lines.

I just used a basic =IF formula and repeated it...

=IF(C5 ="IN",B5,0)+IF(C6 ="IN",B6,0)+IF(C& ="IN",B6,0) ad nauseum all
the way through each of 30 lines, and each of 14 different 2 letter
codes.

As I said, it does work, but it's a royal pain if you need to make
changes etc.

Any ideas?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
britgirl
 
Posts: n/a
Default This formula needs to be more compact.


Brilliant, thanks. :)


--
britgirl
------------------------------------------------------------------------
britgirl's Profile: http://www.excelforum.com/member.php...o&userid=29957
View this thread: http://www.excelforum.com/showthread...hreadid=496843

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
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 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


All times are GMT +1. The time now is 03:00 AM.

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"