Alternating Columns

Brian from Maui

MrExcel MVP
Joined
Feb 16, 2002
Messages
8,459
Aloha All!

I have text and data in alternating columns.
Is there a formula such as SUMIF to search for a criteria in columns with text and sum the next cell to it with data? The range and sum range are identical. Is this possible?

Brian
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You want to use an array formula. They are pretty easy.

Search the web site for CSE formulas. There is a great write up and examples
 
Upvote 0
Aloha!

Here's a short sample of the text and data

A B C D E F G H
ot 4 st 8 dt 4 ot 4

I would like to search for ot and sum 4 under columns B and H.

Brian
 
Upvote 0
On 2002-02-23 19:05, Anonymous wrote:
Aloha!

Here's a short sample of the text and data

A B C D E F G H
ot 4 st 8 dt 4 ot 4

I would like to search for ot and sum 4 under columns B and H.

Brian

Aloha,

Come on Brian -- you should know by now the syntax of SUMIF :(

Thus, either

=SUMIF(A:A,"ot",B:B)+SUMIF(G:G,"ot",H:H)

or, using fixed ranges,

=SUMIF(A2:A10,"ot",B2:B10)+SUMIF(G2:G10,"ot",H2:H10)

There is no way you can get rid of +. That is, a single SUMIF won't do.

Aladin
 
Upvote 0
Aladin,

I thought they'd be a shorter way! I have 15 columns of text and 15 columns of data by about a 100 rows. I guess I'll have to reformat the spreadsheet or do the + 15 times. As always Aladin, much Mahalos!!
:)
Brian
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top