Adding numbers that are only highlighted

shaftdx

Board Regular
Joined
Aug 20, 2018
Messages
136
Office Version
  1. 2011
Platform
  1. MacOS
Ok I hope I can do this and I hope I can get across what I mean.

I have an ever growing list of trips my company provides. I have 4 vendors that we quote the work out to. I sent out the trip and get the quoted price back for either of them. I choose what company is the cheapest and that price automatically Highlights.

I would like to find a way to have a "Summery" tab that will automatically not only add all the highlighted prices but also divide them up by the month so I can more easily do the invoicing.

I am sorry the page has client info so I can nod share a screen shot or anything like that.

does this make sense? I can go into more detail if needed
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
how do you choose the company - and how is it automatically highlighted ?
Theres no inbuilt function to sum by colour - But you could have an extra column that has something in and then use a sumif()
based on whatever you put in the helper column

otherwise you will need VBA , nolonger my area on forums , as out of date

Book8
ABCD
1QuotePriceLowestSUM()
2Quote 1100210
3Quote 2200
4Quote 370x
5Quote 4100
6Quote 5450
7Quote 1100
8Quote 2200
9Quote 370x
10Quote 4100
11Quote 5450
12Quote 1100
13Quote 2200
14Quote 370x
15Quote 4100
16Quote 5450
Sheet1
Cell Formulas
RangeFormula
D2D2=SUMIF(C2:C16,"X",B2:B16)
 
Upvote 0
how do you choose the company - and how is it automatically highlighted ?
Theres no inbuilt function to sum by colour - But you could have an extra column that has something in and then use a sumif()
based on whatever you put in the helper column

otherwise you will need VBA , nolonger my area on forums , as out of date
My column L has a pull down menu with a list of all available vendors.

Columns R thru U are where I put the prices they quoted. So Col R is Vendor #1 Col S is Vendor #2 and so on. I used Conditional Formatting that when I choose Vendor #1 in col L Row 200 the corresponding cell in R200 highlights. so I can tell just by looking at it even though all 4 vendors bid on that trip it was vendor #1 that was awarded it.
 
Upvote 0
not sure from that info , how to summarise, as i say if VBA , then not my area, which will only sum by colour

But it does sound like you could use the vendors selected in column L

really need to see a sample
I am sorry the page has client info so I can nod share a screen shot or anything like that.
Is it possible to perhaps change all the names - overwrite with A1 , and copy down
OR make a small sample
Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

XL2BB is an add-in used on this forum , see my signature or the menu in post to link to the full details
OR put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.

Here is the link to XL2BB instructions

 
Upvote 0
not sure from that info , how to summarise, as i say if VBA , then not my area, which will only sum by colour

But it does sound like you could use the vendors selected in column L

really need to see a sample

Is it possible to perhaps change all the names - overwrite with A1 , and copy down
OR make a small sample
Sorry I am still rather new to this part of the message board. I can not get the XL2BB to work I think i need Admin approval I was able to load the sample spread sheet to One drive but I do not know how to get it on here. Thank you for your help and your time!
 
Upvote 0
I can not get the XL2BB to work I think i need Admin approval
if its a work computer, then it may have restrictions
I was able to load the sample spread sheet to One drive but I do not know how to get it on here.
you should be able to see on onedrive a share option, and then you can copy the link and post here

here are instruction & a video on how to share files from onedrive
 
Upvote 0
I used Conditional Formatting that when I choose Vendor #1 in col L Row 200 the corresponding cell in R200 highlights. so I can tell just by looking at it even though all 4 vendors bid on that trip it was vendor #1 that was awarded it.
Rather than sum based on what color column R is, sum based on what value column L has.
=SUMIF(L1:L1000, "Vendor 1", R1:R1000)
 
Upvote 0
Solution
Rather than sum based on what color column R is, sum based on what value column L has.
=SUMIF(L1:L1000, "Vendor 1", R1:R1000)
Luckily I have insomnia right now and this is exactly what I had in mind thank you!
is there a way I can further break it down by month?
 
Upvote 0
SUMIFS lets you look at many columns
=SUMIF(Trips!L:L,A6,Trips!U:U) is the formula I am using to add up all the numbers and it is working great, Thank you! Does it matter where in the formula I put the next criteria for the Months? if it helps this formula is in Cell B6. above that in B2 I have "August" B3 is 8/1/2021 & B4 is 8/31/2021

I think there is away to get it to only count the numbers between the 2 dates but I do not remember how.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,539
Members
449,316
Latest member
sravya

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