Values to all customer rows (Filter, earlier, except??)

propi_

New Member
Joined
Jun 11, 2014
Messages
19
Hey Community,

simple Example:

Cust_no
Product
Bought Car?
Calculated Column for [Bought Car?]
Calculated Column 2 Wanted result
1
Bike1 ??
1CarYes1
=CALCULATE(VALUES(table1[cust_no]);table1[Bought Car?]="Yes"
1 ??

<colgroup><col style="width:48pt" span="2" width="64"> <col style="mso-width-source:userset;mso-width-alt:2962;width:61pt" width="81"> <col style="mso-width-source:userset;mso-width-alt:16310;width:335pt" width="446"> <col style="mso-width-source:userset;mso-width-alt:3474;width:71pt" width="95"> </colgroup><tbody>
</tbody>


How do I get the Cust_no in all rows?
Propably one of these: earlier, allexcept or filter, but can't get it to go.

Wanted syntax wording: value to all rows() :LOL:


THX and have a nice week!

Andy
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
That should work

=IF(table1[Bought Car?] = "Yes",table1[Cust_no],BLANK())


Sorry, didn't mentioned, that i wanted to write the cust.no to all rows, if the customer bought e.g. a car.
The Idea is to filter all orders if the customer bought a car. The if condition would only bring the car orders.

Greets
Andy
 
Upvote 0
Try this:
=CALCULATE(MAX([CustNo);FILTER(Table;IF([BoughCar?]<>blank();[CustNo];BLANK())=EARLIER([CustNo])))
 
Upvote 0
Try this:
=CALCULATE(MAX([CustNo);FILTER(Table;IF([BoughCar?]<>blank();[CustNo];BLANK())=EARLIER([CustNo])))

Correction:
=CALCULATE(MAX([Cust_no]);FILTER(Tabelle1;IF([Bought Car?]<>blank();[Cust_No];BLANK())=EARLIER([Cust_No])))

The MAX only works with values but not with strings. Is there a Workaround for strings (text)?
Propably not, because of the Calculate() :LOL:

Anyway works super! Thanks for Help!
 
Upvote 0

Forum statistics

Threads
1,215,632
Messages
6,125,913
Members
449,274
Latest member
mrcsbenson

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