Conditional Formatting and sumif or index or another formula? (please help!)

aqalna

New Member
Joined
Oct 12, 2016
Messages
8
<article>
I am working on a file and still need help for the following:

Is there a way to retrieve the information for "rows 16 to 23" under column "B" from where it populates the data based on "rows 1 to 14" under column "B"

Lastly, I am trying to figure out how can I highlight the "row 22" (Location 7) in yellow since it does not exist anymore from "rows 8 to 14"

As well, similar to "row 23" (location 8) where it is newly added and is not shown in "rows 8 to 14" so I want that to be highlighted in light blue.

Let me know if anyone can teach me in doing that please.

Here is my data set:
Column A Column B Column C Column D Column E



Areas types
school car food Date
row 1Location1 150.00 500.00 200.004/9/2016
row 2Location2 900.00 450.00 325.004/9/2016
row 3Location3 436.00 543.00 764.004/9/2016
row 4Location4 8,565.00 2,342.00 4,635.004/9/2016
row 5Location5 967.00 876.00 65.004/9/2016
row 6Location6 8,565.00 2,342.00 123.004/9/2016
row 7Location7 904,345.00 8,765.00 6,546.004/9/2016

<colgroup><col><col><col span="3"><col></colgroup><tbody>
</tbody>

row 8Location3 234.00 342.00 657.004/16/2016
row 9Location1 554.00 8,797.00 23,423.004/16/2016
row 10Location6 234.00 34,576.00 75.004/16/2016
row 11Location4 967.00 6,456.00 655,464.004/16/2016
row 12Location2 905.00 873.00 1,232.004/16/2016
row 13Location5 2,347.00 345.00 4,546.004/16/2016
row 14Location8
5,000.00 4,000.00 2,000.004/16/2016

<colgroup><col><col><col><col><col><col></colgroup><tbody>
</tbody>

row 15Variance Date4/9/20164/16/2016



Column A

Column B
Column C
Colum D
Column E
row 16Location1404.00
8,297.0023,223.00
row 17Location25.00423.00907.00
row 18Location3-202.00-201.00-107.00
row 19Location4-7,598.00
4,114.00650,829.00
row 20Location51,380.00-531.004,481.00
row 21Location6-8,331.0032,234.00-48.00
row 22Location7-904,345.00-8,765.00-6,546.00
row 23Location85,000.004,000.002,000.00

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


</article>




<tbody>
</tbody>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Here is what you can do:

1. if for row 8 to row 14, you can change the number to negative, the number for row 16 to row 23 can be retrieved from the formula "=SUMIF($A$1:$A$14,A16,$B$1:$B$14)"


2. To
highlight the "row 22" (Location 7) in yellow , you need to first :select A16:A23, second: go to conditioning formatting , choose formula, copy paste the formula "=COUNTIF($A$8:$A$14,A16)=0" in there, and choose the yellow color as your desired color, hit OK button.

3.To highlight the "row 23" (Location 8) in blue , you need to first :select A16:A23, second: go to conditioning formatting , choose formula, copy paste the formula "=COUNTIF($A$1:$A$7,A16)=0" in there, and choose the blue color as your desired color( you can customize the color), hit OK button.

Let me know if you have any questions.
 
Last edited:
Upvote 0
The data is always updating and new locations will continue to come up and locations will disappear. So for your recommendation will this be dynamic or static conditional formatting....if it is static just for those two rows than it might not work :S


I am not looking to retrieve numbers but instead the areas being consolidated as a "Summary section"

so ie:

Location 1
Location 2
Location 3

It is basically summarizing the two sets of data that is based on dates into new summary.

I hope that makes more sense and you can help me out :) thanks again.


Here is what you can do:

1. if for row 8 to row 14, you can change the number to negative, the number for row 16 to row 23 can be retrieved from the formula "=SUMIF($A$1:$A$14,A16,$B$1:$B$14)"


2. To
highlight the "row 22" (Location 7) in yellow , you need to first :select A16:A23, second: go to conditioning formatting , choose formula, copy paste the formula "=COUNTIF($A$8:$A$14,A16)=0" in there, and choose the yellow color as your desired color, hit OK button.

3.To highlight the "row 23" (Location 8) in blue , you need to first :select A16:A23, second: go to conditioning formatting , choose formula, copy paste the formula "=COUNTIF($A$1:$A$7,A16)=0" in there, and choose the blue color as your desired color( you can customize the color), hit OK button.

Let me know if you have any questions.
 
Upvote 0
so basically I want populate the rows 16 to row 23 (areas) in column B that is captured from rows "1 to 14"
 
Upvote 0
1.This is a dynamic conditional formatting
2. The formula SUMIF I give to you does the dynamic summary job. You just put the formula in the B16, and drag down, It will do its work.

 
Upvote 0
See the below:
The formula SUMIF I give to you does the dynamic summary job. You just put the formula in the B16, and drag down, It will do its work.
For B column:
=SUMIF(
$A$1:$A$14,A16,$B$1:$B$14)
For C column:
=SUMIF(
$A$1:$A$14,A16,$C$1:$C$14)
For D column:
=SUMIF(
$A$1:$A$14,A16,$D$1:$D$14)

so basically I want populate the rows 16 to row 23 (areas) in column B that is captured from rows "1 to 14"
 
Upvote 0
I am not sure if there is a way I can send you or attach my excel file. This is my first time trying to explain without using my excel file :S....

See the below:
The formula SUMIF I give to you does the dynamic summary job. You just put the formula in the B16, and drag down, It will do its work.
For B column:
=SUMIF(
$A$1:$A$14,A16,$B$1:$B$14)
For C column:
=SUMIF(
$A$1:$A$14,A16,$C$1:$C$14)
For D column:
=SUMIF(
$A$1:$A$14,A16,$D$1:$D$14)
 
Upvote 0
because those formula's arent working what is the a16 targeting and what is your column a and b? is column a the rows (row 1, row 2 etc...) and column b is areas (ie: location 1, location 2, locaiton 3, etc...)
 
Upvote 0
Location is in columnA;

Location1150.00500.00200.004/9/2016

<tbody>
</tbody>
A1

B1

<!--StartFragment--> <colgroup><col width="65" span="5" style="width:65pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
I am not looking for to get amounts instead I am looking to get column "A".


So to give you more context that I have two sets of data with two sets of dates. It is basically consolidating the two sets of locations into one.

Does that make more sense?




Location is in columnA;

Location1150.00500.00200.004/9/2016

<tbody>
</tbody>
A1
B1

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,884
Members
449,477
Latest member
panjongshing

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