Query problem (minor)

ndendrinos

Well-known Member
Joined
Jan 17, 2003
Messages
1,694
In my query "Visa" I have:

Company A............$50.00
Company B............$0.00
Company C............$20.00
Company A............$10.00

What it shoud be is:

Company A............$60.00
Company C............$20.00

Typed in disign mode under Visa Is Not Null....that did not do it
Typed NOT NULL that did not work either.
Typed "Is Not Null".... nada and more variations that did not work either.
Also I can't get the comapnies to "merge" by name...
Still showing are two rows for company A

Can any one help please?
Thank you
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You need to group By the Company Column and Sum by the costs column. This is done in design view by clicking the Totals button (Next to the show Table button). :pray:
 
Upvote 0
Spazmonkey gave you the right solution to "merge" your results using "Group By". In order to eliminate the zero value results, place <>0 in the criteria section for your amount field.

TD
 
Upvote 0
Spatzmonkey, buckeye_td, all worked great thanks a lot.
Forget to metion that the query had more credit card columns, what it really looks like is like this now after I've done what you said.

Inv No...Company....Visa.......Mastercard....Amex

ND01......Apple.......$10.00.......0.00............0.00

So I 've done a query on this query and I've eliminated the columns for Mastercard & Amex.
If there is a better solution please explain it to me, and if OK I thank you again.
Regards,
Nick
 
Upvote 0

Forum statistics

Threads
1,221,832
Messages
6,162,255
Members
451,757
Latest member
iours

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